Changing file extensions in bash
for f in *.old; do mv "$f" "${f%%\.old}.new"; done
The quotes take care of possible spaces in the filename.
This blog has moved to procrastiblog.com. All archived posts are available there. Please update your bookmarks. If you have followed a broken link to a post on this site, please be so kind as to inform the management.
for f in *.old; do mv "$f" "${f%%\.old}.new"; done
The quotes take care of possible spaces in the filename.
Posted by Chris at 9/13/2006
No comments:
Post a Comment