mkdir renamed ls -1 *(.) | sort | awk '{ count++; printf "cp %s renamed/%04d\n",$1,count; }' | zsh
- get the list of files in the current directory
- sort the list with sort command by the required order: reversed, numeric, ignoring case, ...
- generate a shell script, and execute it.
0 件のコメント:
コメントを投稿