Renaming package to ShadowArch to follow /wiki/Design_Principles; improved packing; development sync to current state -- massive overhaul
This commit is contained in:
11
UserScripts/standardize-folder
Executable file
11
UserScripts/standardize-folder
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
export IFS="
|
||||
"
|
||||
export prefix="$(echo $PWD | rev | cut -f 1 -d '/' | rev)"
|
||||
firstext="$(ls | head -n 1 | rev | cut -f 1 -d \. | rev)"
|
||||
export count=1;
|
||||
for i in $(ls -tr *."$firstext" | grep -v "$prefix"); do
|
||||
mv "$i" "$prefix $count.$firstext"
|
||||
export count=$(($count+1))
|
||||
done
|
Reference in New Issue
Block a user