Renaming multiple files
I have many files named (number).jpg that I want to rename to (number)_sm.jpg (thumbnails, "sm" is short for "small").
How do I do this via shell? I've tried futzing around with mv, rename and wildcards characters, but it's getting me nowhere. |
try this:
Code:
for f in *.jpg ; do mv $f ${f%.jpg}_sm.jpg; done |
All times are GMT -5. The time now is 03:25 AM. |