11

capturing the value in file before string(*) using sed

view full story
linux-howto

http://www.unix.com – I am trying to capture the last value before the the * in test4.txt file using sed & tail (in this case 0FA). I got the output using the below steps. P.s: The number of * in the file varies from file to file. Any idea of a better way to do this? Code: cat test4.txt                           1234  Not Visible                    0  00  046                           5678  Not Visible (HowTos)