fix(cses): flatten directory
This commit is contained in:
parent
4f0c2d75c5
commit
5fbc6203d0
49 changed files with 11 additions and 316 deletions
11
cses/script.bash
Normal file
11
cses/script.bash
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue