Thread
:
Filter records in a file with sed or awk (UNIX)
View Single Post
#
2
(
permalink
)
October 6th, 2008, 05:01 AM
ciderpunx
Friend of Wrox
Join Date: Dec 2003
Posts: 488
Thanks: 0
Thanked 3 Times in 3 Posts
Code:
awk '$2=="XX"||$2=="YY" {print $0}' your_filename
--
Charlie Harvey's website - linux, perl, java, anarchism and punk rock:
http://charlieharvey.org.uk
ciderpunx
View Public Profile
Visit ciderpunx's homepage!
Find all posts by ciderpunx