Linux renomear vários arquivos
$ for i in *.log; do mv -- "$i" "${i%.log}.txt"; done
Nutty Newt
$ for i in *.log; do mv -- "$i" "${i%.log}.txt"; done
$ for i in $( ls ); do mv $i $i.old; done
> ls | while read fname
> do
> echo mv $fname ${fname/.log/.LOG/}
> done
# Change all jpeg to jpg
for f in *.jpeg; do
mv -- "$f" "${f%.jpeg}.jpg"
done
$ for i in $( ls ); do mv $i $i.txt; done
$ mmv '*abc*' '#1xyz#2'