compound pattern {statement(s)}
compound pattern {statement(s)}
- Field Separator is the UNIX pipe character(|).
- The pattern selection:
- Determine if field six equals the character string "CA"
- Determine if field five is like "San Jose"
awk -F”|” ‘ $6 == “CA” && $5 ~ /San Jose/ ‘ phone.lst