[EMAIL PROTECTED] writes:
> I'm on a box that uses csh as its default shell,
<gag>
> so I'm wondering if there
> is a way in csh shell scripting to read in a file a line at a time, and then
> get the fourth token on each line. The tokens are separated by spaces, such
> as:
>
> token1 token2 token3 token4 token5 . . .
>
> And the file contains many lines. Does anyone know how to do this?
awk '{print $4}' your-file-name
--kevin
--
Kevin D. Clark (cetaceannetworks.com!kclark) | Will hack Perl for
Cetacean Networks, Inc. | fine food, good beer,
Portsmouth, N.H. (USA) | or fun.
alumni.unh.edu!kclark (PGP Key Available) |
**********************************************************
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**********************************************************