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

RE: Quick question on awk usage



 

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


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