tabs converted to spaces?
Rick Schneider
rick at vsi1.UUCP
Thu Jul 21 15:04:49 AEST 1988
>From article <3940001 at hpgrla.HP.COM>, by douglasg at hpgrla.HP.COM (@Douglas Genetten):
> Is there a filter which converts tabs to n-spaces throughout
> a file?
>
Try the translate filter:
tr '\11' '\40' < input_file > output_file
this will map a tab to one space (a \11 is the tab character and the \40
is the space character)
--
Rick Schneider ...pyramid!vsi1!rick
VICOM SYSTEMS, INC.; 2520 Junction Avenue, San Jose, Ca, 95134, (408) 432-8660
The opinions expressed are not those of my employer or are they?
More information about the Comp.unix.questions
mailing list