Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!ux1.cso.uiuc.edu!osiris.cso.uiuc.edu!gordon From: gordon@osiris.cso.uiuc.edu (John Gordon) Newsgroups: comp.unix.questions Subject: Re: getting a field from a line in awk/sed/? Message-ID: <1991Jan10.012211.22100@ux1.cso.uiuc.edu> Date: 10 Jan 91 01:22:11 GMT References: <1991Jan9.162817.17038@porthos.cc.bellcore.com> Sender: news@ux1.cso.uiuc.edu (News) Organization: University of Illinois at Urbana Lines: 17 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 '{print $2}' Hope this helps. --- John Gordon Internet: gordon@osiris.cso.uiuc.edu #include gordon@cerl.cecer.army.mil #include