Path: utzoo!utgpu!water!watmath!clyde!att!pacbell!ptsfa!dmt From: dmt@ptsfa.PacBell.COM (Dave Turner) Newsgroups: comp.unix.questions Subject: Re: tabs converted to spaces? Keywords: sed, expand Message-ID: <4439@ptsfa.PacBell.COM> Date: 25 Jul 88 21:51:00 GMT References: <3940001@hpgrla.HP.COM> <187@alobar.ATT.COM> <566@philmds.UUCP> <453@jonlab.UUCP> Reply-To: dmt@ptsfa.PacBell.COM (Dave Turner) Organization: Pacific * Bell, San Ramon, CA Lines: 24 In article <453@jonlab.UUCP> jon@jonlab.UUCP (Jon H. LaBadie) writes: > > newform -i6,20,35 file_name > >for columns at 0, 6, 20, and 35. Tabs in the file, spaces >on standard out. The command as shown will output tabs because an output tabspec was omitted. For an input file with tabs that are assumed to be set in columns 6, 20 and 35 with spaces in the output the newform command should be: newform -i6,20,35 -o-0 file_name The -o-0 argument says to output tabs that are assumed to be set every zero characters. The default is -o-8 (tabs assumed to be set every eight characters). -- Dave Turner 415/542-1299 {att,bellcore,sun,ames,pyramid}!pacbell!dmt