Quick question on awk usage
Miner, Jonathan W (CSC) (US SSA)
jonathan.w.miner at baesystems.com
Tue Jun 27 15:07:38 UTC 2006
-----Original Message-----
From: redhat-list-bounces at redhat.com on behalf of Bliss, Aaron
Sent: Tue 06/27/2006 11:00 AM
To: redhat-list at redhat.com
Cc:
Subject: Quick question on awk usage
Hi everyone, I have a quick question on using awk from the command line;
I have a tab delimited file, and would like to know the syntax to print
the entire line only when $12 == 575;
-----------------------------------
awk -F'<tab>' '$12 == 575 {print $0}' file
Don't type <tab>, simply press the TAB key on your keyboard
More information about the redhat-list
mailing list