Friday, September 19, 2014

How to batch rename files of the Bash command line for Linux

How to batch rename files of the Bash command line for Linux


Example:
# find ./ -name oldfile -exec mv .newfile \

or
# find ./ -name oldfile | xargs -I mv .newfile

or
# find ./ -name oldfile | awk 'printf("mv %s \t %s \n",$1,$1)' |sh



How to batch rename files of the Bash command line for Linux

1 comment:

  1. Thanks to share this batch rename files of the Bash command. if you also want info related Cheap Dedicated Server Hosting you can visit link.

    ReplyDelete