rename multiple files

2018
rename
bash linux shell-programming

Table of Contents



rename command

    rename searchWord replaceWord  <InputFile>

rename files using move command in for loop

    for file in File*.dat
    do
        mv -i "${file}" "${file/SearchWord/ReplacementWord}"
        # Here -i option will ask everytime for replacing name.
    done



Enjoy Reading This Article?

Here are some more articles you might like to read next:

  • Effective Field Theory (EFT) in High Energy Physics
  • CMS Full Detector Simulations based on mccm chain
  • Physics Words and Concepts
  • Macbook Keynote Tricks
  • Scalar search in CMS
  • HH Analysis in CMS
  • dasgoclient
  • fc command
  • CMS Software (CMSSW)
  • CMS HEM Issue