New answers tagged ksh
3
votes
Accepted
shell one-liners for bulk-renaming multiple files
If you can install zsh:
XX - title.flac to XX title.flac regular files.
zsh <<\EOF
autoload zmv
zmv -n '(**/)(<-> )- (*.(#i)(ogg|mp3|flac))(#q.)' '$1$2$3' < /dev/tty
EOF
GENRE - ...
Top 50 recent answers are included
Related Tags
ksh × 810shell-script × 223
shell × 163
bash × 131
aix × 94
linux × 82
scripting × 63
awk × 48
sed × 37
text-processing × 36
solaris × 36
zsh × 25
perl × 24
grep × 22
find × 21
variable × 21
quoting × 19
files × 18
command-history × 18
regular-expression × 17
prompt × 17
date × 16
array × 15
openbsd × 15
io-redirection × 13