I have numerous amounts of .ini files that I have to extract specific lines from. Say Lines 1,5,9,23,63,31 (each in a new line) from all files. So as you can see, no sort of pattern and I jump around in lines. I'd like to write a perl script (which I can set to run through all the .ini files in the folder. All file names begin with the prefix Dat , so Dat*.ini can be used and I would like the new . Is this even doable?
The reason I can't grep like my last post is, the lines I want are repeated all over the text file, and are sometimes just 2 characters long yielding many results =/