elf_lord_ZC5
Honorary Master
I have a directory full of text files named with names as follows A51.txt
I need to rename these to something more meaning full to myself and others. These are the lyrics from a Church LED projection board and are I believe related to an indexing function.
The first line is blank.
The second line contains the same value as the file name, as above A51.
The third line contains the title of the lyric in that file Amazing Grace.
What I want is to rename each *.txt file name to show the name of the lyric to Amazing Grace.txt, or Amazing Grace A51.txt - indexing number might still be useful - there might be other versions of Amazing Grace included.
This would greatly help me and others move these lyrics into OpenSong or similar, by identifying those we use most and moving them over first.
PPS - The LED board has died, and our Pastor has replaced it with a video projector, which I think is an improvement, but getting our lyric library over to something we can use is very time consuming.
A script to do the above would ease my work radically.
If some kind soul could help with a solution would be much appreciated.
Thanks
I need to rename these to something more meaning full to myself and others. These are the lyrics from a Church LED projection board and are I believe related to an indexing function.
The first line is blank.
The second line contains the same value as the file name, as above A51.
The third line contains the title of the lyric in that file Amazing Grace.
What I want is to rename each *.txt file name to show the name of the lyric to Amazing Grace.txt, or Amazing Grace A51.txt - indexing number might still be useful - there might be other versions of Amazing Grace included.
This would greatly help me and others move these lyrics into OpenSong or similar, by identifying those we use most and moving them over first.
PPS - The LED board has died, and our Pastor has replaced it with a video projector, which I think is an improvement, but getting our lyric library over to something we can use is very time consuming.
A script to do the above would ease my work radically.
If some kind soul could help with a solution would be much appreciated.
Thanks