Let say there is a sample text file in Linux
[SampleText.txt] 1234 = 1234 abcd = 1234 efgh = /home/user/targetfile1.txt ijkl = /home/user/targetfile2.txt
How I can get the specific path (/home/user/targetfile1.txt & /home/user/targetfile2.txt) out from the SampleText.txt and place it in a variable?
My suggested approach is to parse the file as a general configuration file, and store things that look like assignments. If you have other weird stuff going on in your file, this may not work, but I think it will work here.