I am trying to devise a solution to rename a large collection of files so that the text in line 3 of each file is the new filename. These files all have the same structure.
These are HTML files and specifically line 3 of each file looks like this.
<TITLE>DATA POPULATION 'CODE on group 1234 by THING'</TITLE>
I want to grab everything between the single quotes and use that text to rename the file with that text as the filename.
Renaming these one at a time would useful.