$ 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
$ for i in $( ls ); do mv $i $i.txt; done
for f in *.html; do
mv -- "$f" "${f%.html}.php"
done
# Change all jpeg to jpg
for f in *.jpeg; do
mv -- "$f" "${f%.jpeg}.jpg"
done
mv oldfile newfile