diff options
Diffstat (limited to '.scripts')
-rw-r--r-- | .scripts/order | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/.scripts/order b/.scripts/order index 4d6dd48..1b6eff5 100644 --- a/.scripts/order +++ b/.scripts/order @@ -13,12 +13,5 @@ done i=1; for d in * ; -do mv -n "$d" "$(ls | sed '=' | sed 'N;s/\n/. /' | awk -v i=$i 'NR==i')" && i=$((i+1)); +do echo $d $i ; mv -n "$d" "$(ls | nl -w$lenofnod -s ". " -n rz | awk -v i=$i 'NR==i')" ; i=$((i+1)); done - - -#add zeroes in front if lenofnod = 1 - -#for f in * -#do rename - |