I have many files in a SRC folder. I would like to move all the files that follow a particular pattern from this SRC folder to another DST folder along with rename the file with a required extension.
/Vinodh folder are
TEST03 contain the word
I want to move the
TEST03 files to
/TEST folder as
I will be typing the command as
cd /Vinodh grep -l 'WORLD' *TEST* mv TEST02 /TEST mv TEST03 /TEST cd /TEST mv TEST02 TEST02.txt mv TEST03 TEST03.txt
I'd like to combine all this to a single line statement or have batch file that copies all the files in a single shot.