file manipulation (easy question I think)

Jit Keong Tan jit at cellbio.duke.edu
Tue Jun 18 11:26:17 AEST 1991


In article <1991Jun17.200748.19324 at msuinfo.cl.msu.edu> jpd at tardis.cl.msu.edu (Joe P. DeCello) writes:
>
>What is this best (easiest) way in which to get the first word
>of each line in a text file to a single line in a new text file?
>
>^L
>--
>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>Joseph P. DeCello III                e-mail:  jpd at cad.msu.edu
>Michigan State University             phone:  (517) 353-3027
>Specialized Computing Support Services

I ran this in an emacs/src dir:

[63] jit at slic % ls -l t* | nawk '{ printf "%s %s === ", $5,$9}' -
770 temacs.opt === 33296 term.c === 14111 termcap.c === 2202 termchar.h === 1714
 termhooks.h === 1717 terminfo.c === 1475 termopts.h === 177 testemacs.com === 6
 966 tparam.c === [64] jit at slic % 

(outputs got wrapped by the screen)
-- 

--------------------------------------------------------
Jit Keong Tan     | internet: jit at slic.cellbio.duke.edu
(919) 684-8098    | bitnet  : tan00001 at dukemc.bitnet



More information about the Comp.unix.questions mailing list