Path: utzoo!attcan!uunet!snorkelwacker!think!zaphod.mps.ohio-state.edu!wuarchive!udel!mmdf From: EPRF%SNYCENVM.BITNET@cornellc.cit.cornell.edu (Peter Flass) Newsgroups: comp.os.minix Subject: Re: cut.c Message-ID: <8060@nigel.udel.EDU> Date: 12 Jan 90 19:16:24 GMT Sender: mmdf@udel.EDU Lines: 30 On Wed, 10 Jan 90 19:33:20 GMT Paul Allen said: >In article <5067@ast.cs.vu.nl> ast@cs.vu.nl (Andy Tanenbaum) writes: >> >>I treid using cut yesterday to extract the third column from a crc listing >>like this: >> >>65261 8510 alloc.c >>09176 7432 break.c >>53152 990 const.h >> >>I could not find any combination of -d and -i flags to convince it to consider >>a run of spaces as a separator. I eventually did it with columns, but I >>think it ought to work with fields as well. Does anyone (e.g., the author) >>know how to do this? > Doesn't help with cut, but I use Mined to replace .* with , where is a single blank and is a carriage return to indicate a null replacement. - Pete +---------------------------------------------------------------------------+ | | | Peter Flass BITNET: EPRF@SNYCENVM (preferred) | | Director of Computing Services INTERNET: ESCFLASS@UBVM.CC.BUFFALO.EDU | | SUNY Empire State College AT&TNET: (518)587-2100 X350 | | 2 Union Avenue "After three days without programming, | | Saratoga Springs NY 12866 Life becomes meaningless" | | - The Tao of Programming | +---------------------------------------------------------------------------+