OLDEXT=${2/#.} for file in *.jpg ; do mv $file `echo $file | sed 's/\(.*\.\)jpg/\1png/'` ; done
Friday, October 28, 2011
Shell Script to re-name file extensions
Subscribe to:
Post Comments (Atom)
OLDEXT=${2/#.} for file in *.jpg ; do mv $file `echo $file | sed 's/\(.*\.\)jpg/\1png/'` ; done
No comments:
Post a Comment