I am trying to read each line of the text file and extract the name before the .tst and store each match into a variable array. here is an example of the txt file:
someTest.tst (/blah/blah/blah),
someOtherfile.tst (/some/other/blah),
hello.tst (/not/the/same/blah),
hi.tst (/is/this/blah),
There is a bunch of whitespace on each line before the characters.
I would like to extract the following values and store them in a variable array:
someTest
someOtherfile
hello
hi
I have tried using sed and awk but my knowledge with either is not expert level status and thus I am having trouble achieving what I want. Any insight?