Duh, even easier: $ cut --delimiter='|' --fields=N < infile > outfile
where N = the fields you want. See man cut. -- +----------------------------------------------------+ | Eric G. Miller [email protected] | | GnuPG public key: http://www.jps.net/egm2/gpg.asc | +----------------------------------------------------+

