I have a data file that is made up of lines that all contain FG=???? (where ???? represents a four digit number that is different on each line ).
I would like to extract this from each line and save it to a new file. Is this possible to do using awk?
I have been using the /this/ to extract lines containing the word this. Is there something similar for extracting a word from a line?