getting a field from a line in awk/sed/?
Samuel N Kamens
snk at bae.bae.bellcore.com
Thu Jan 10 03:28:17 AEST 1991
I'm sorry if anybody already got this -- I posted it
yesterday, and it doesn't seem to have made it off
the machine I posted it on.
The question I had was, how can I use UNIX tools to
get one field out of a line?
The input will look like this:
Rank Owner Job Files Total Size
1st fort 24 (standard input) 40354 bytes
3rd root 178 standard input 57 bytes
4th mike 25 (standard input) 26895 bytes
6th rdg 686 (standard input) 733 bytes
7th bdt 688 (standard input) 31053 bytes
And the output should look like this:
Owner
fort
root
mike
rdg
bdt
Any ideas?
-------------------------------------------------------------------------------
Sam Kamens Bell Communications Research
snk at cellar.bae.bellcore.com Phone: (908) 699-7381
444 Hoes Lane Room RRC 1C-205
Piscataway, NJ 08854
More information about the Comp.unix.questions
mailing list