getting a field from a line in awk/sed/?

John Gordon gordon at osiris.cso.uiuc.edu
Thu Jan 10 12:22:11 AEST 1991


	Well, this may not be perfect since I don't have an AWK reference
right here, but I think this will work:

	(program that produces output) | awk '{print $2}'

	If that does not work, try this:

	awk -f <file that contains input> '{print $2}'

	Hope this helps.


---
John Gordon
Internet: gordon at osiris.cso.uiuc.edu        #include <disclaimer.h>
          gordon at cerl.cecer.army.mil       #include <clever_saying.h>



More information about the Comp.unix.questions mailing list