Adding Admin and Shared scripts

This commit is contained in:
DarkFeather
2016-11-09 22:25:00 -06:00
parent 5ea18518ef
commit ce8320ce2e
20 changed files with 211 additions and 0 deletions

11
Shared/standardize-folder Executable file
View 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