I am trying to extract lines from a file and save the output to a new file.
I have been using the code:
cat datafile | awk -f pullhh.txt > fuel
where the file
pullhh.txt contains the code
I want to extract lines containing the word
FUELHH and save them to a file and then also extract lines containing
FUELINST and save them to a separate file.
Is there a way to do this having both commands in the