tabs converted to spaces?

Bryan Dawson ext 1184 dawson at fpssun.fps.com
Tue Jul 26 02:41:07 AEST 1988


In article <4425 at ptsfa.PacBell.COM>, dmt at ptsfa.PacBell.COM (Dave Turner) writes:
> In article <3940001 at hpgrla.HP.COM> douglasg at hpgrla.HP.COM (@Douglas Genetten) writes:
> >Is there a filter which converts tabs to n-spaces throughout
> >a file?
> 
> You might try newform and/or sed.

Several replies have mentioned tr or sed. I assume that the desired
result is to convert tabs to spaces *in a fomat preserving manner*.
The correct standard tool to do this in UNIX is expand. Expand is
designed to perform exactly this function (and its inverse 'unexpand')
and does so very well.



More information about the Comp.unix.questions mailing list