Path: utzoo!attcan!uunet!loft386!wbrown From: wbrown@loft386.UUCP (Wayne Brown) Newsgroups: comp.os.minix Subject: Re: cut.c Summary: Using spaces as field delimiters with cut.c Message-ID: <584@loft386.UUCP> Date: 13 Jan 90 06:02:32 GMT References: <5067@ast.cs.vu.nl> Organization: Lofty Pursuits, Rapid City, SD USA Lines: 12 In article <5067@ast.cs.vu.nl>, ast@cs.vu.nl (Andy Tanenbaum) writes: > > I could not find any combination of -d and -i flags to convince it to consider > a run of spaces as a separator. You have to use the -d flag to redefine the delimiter as the space character, and also use the -i flag to use a run of spaces. The space must be enclosed in quotes. Try this : cut -i -d' ' -f3 filename to extract the third field. Wayne Brown uunet!loft386!ledgepc!wayne