fix(cses): flatten directory

This commit is contained in:
Barrett Ruth 2025-02-21 15:50:44 -05:00
parent 4f0c2d75c5
commit 5fbc6203d0
49 changed files with 11 additions and 316 deletions

11
cses/script.bash Normal file
View file

@ -0,0 +1,11 @@
#!/bin/bash
for dir in */; do
dir_name="${dir%/}" # Remove trailing slash
for file in "$dir"*.*; do
ext="${file##*.}" # Extract extension
mv "$file" "./${dir_name}.$ext"
done
done