How to print out lines with a specific pattern in awk?
Hey Ana
To print lines with a specific pattern in awk
, you use the following syntax:
awk '/pattern/' file
This command will search for “pattern” in “file” and print every line that contains it.