So, here's the thing. I have a file contains like this:
LOG=123 HEY=BRO FOO=BAR LOG=124
I need the value of LOG= and an output like this:
123
124
I already tried using this command:
echo "$LOG" | egrep -o 'LOG=.*'
but it only outputs everything after the first word and not the values of all words with LOG=