Linux zmienia nazwę wielu plików
$ 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
mv oldfile newfile