I am trying to get a single line of text from each file within a
directory of text files.
I have directory X that contains files:
Each text file is similar in structure, and contains lines like:
Some mumbo jumbo
Uniqe ID: xyzpdq
some other mumbo jumbo
etc, etc, etc.
In all cases, line 2 contains "Unique ID:" and then the unique
identifier text, which is what I need to extract.
In the above case, I need the "xyzpdq". Note that this is what
changes in each test file.
I want to run a script that will parse either this unique ID, or the
entire 2nd line of text (in which case I can just trim it later) -
from all .txt files within the folder.