Search Results

Search: Posts Made By: Corona688
2,599
Posted By Corona688
Using awk's built-in ability to split records on...
Using awk's built-in ability to split records on blank lines, there's no need for a nested loop:
$ awk '$3 ~ /Four/ {print $1}' RS="" FS="\n" datafile

Vehicle: BMW Class
Vehicle: Toyota Class
...
Showing results 1 to 1 of 1

 
All times are GMT -4. The time now is 11:45 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy