RE: Quick question on awk usage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 

	-----Original Message----- 
	From: redhat-list-bounces@xxxxxxxxxx on behalf of Bliss, Aaron 
	Sent: Tue 06/27/2006 11:00 AM 
	To: redhat-list@xxxxxxxxxx 
	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

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux