Script to rename txt files based on text contents in file
Hi Everyone,
I'm trying to get a script that will rename txt files based on a specific word in each file. I have multiple files and somewhere within each of them is a file number in the following format “ABC_###_###_###”, e.g. ABC_101_102_103. I need a script that will find this file number within each file and rename each file as such.
Can anyone help with this? I don’t have much knowledge of script.
Thank you!
MacBook Pro, OS X Yosemite (10.10.3)