[1] https://stackoverflow.com/questions/208181/how-to-rename-with-prefix-suffix
using 'rename'
rename 's/(.*)$/new.$1/' original.filename
shell scriptfor filename in *.jpg; do mv "$filename" "prefix_$filename"; done;
brace expansionmv {,new.}original.filename
No comments:
Post a Comment