for f in *.old; do mv "$f" "${f%%\.old}.new"; done
The quotes take care of possible spaces in the filename.
for f in *.old; do mv "$f" "${f%%\.old}.new"; done
The quotes take care of possible spaces in the filename.
Contact: Chris
Have a WordPress.com account? Log in now.