using awk with column value conditions

If you’re looking for a particular string, put quotes around it:

awk '$1 == "findtext" {print $3}'

Otherwise, awk will assume it’s a variable name.

Leave a Comment