Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search for a particular number in a particular column.. 1

Status
Not open for further replies.

jdespres

MIS
Aug 4, 1999
230
US
I would like to search for a particular number in a particular column. Once found print the entire line.

For example:

Search for the number 16 in column 4....

And the following would come up

1188921115 1 2 16 cscnb01 0 0 0 bpexpdate bpexpdate Could not build host list: client hostname could not be found

Is this do-a-ble?

Thanks.....

Joe Despres
 
Code:
awk '$4 == 16 {print}' input_file

Ceci n'est pas une signature
Columb Healy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top