How are your colleagues?
I am making a script to collect data from an external file. In the middle of this, I saw myself having trouble with the following sed command to limit the result to a single line.
The following command searches for all words with "value =" by collecting the next number, ignoring rows with "#"
NUM=$(sed -n -e '/#/!s/^.*value=//p' $LOGFILE)
I found other command variations for this but none of them allowed the use of words to be ignored as is the case with this command line.
Any soul to do this capture only the final line and stop the reading by printing the result?
Thank you for your attention!
(Last edited by murilo.xd on 27 Aug 2017, 23:31)