I have thousands of text files in a folder. Inside each of these text files, there is a specific section for Account Numbers, such as:
"ACCT#: 0729410181" (Notice the space after the ":")
I want a script that can scan through these text files and grab the account number, and then rename the file with the account number.
So in essence, file 'testname123.txt' becomes '0729410181.txt', and then move on to the next file in the directory and perform the same function and keep on till it reaches the end.
My filelist is huge (abt 8000 of them).
How would I do that?
Start Free Trial