$ 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
for f in *.jpg; do mv "$f" "$(echo "$f" | sed s/IMG/VACATION/)"; done
rename 's/^/MyVacation2011_/g' *.jpg
mv oldfile newfile