Say, if you want to rename all the files in a folder and add an extension, use this
for file in *.pl ; do mv $file `echo $file | sed 's/\(.*\.\)pl/\1ppl/'` ; done
This converts all the files in this folder from *.pl to *.ppl
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment