Is it possible to replace tabs with the "correct"
number of spaces so that columnar alignment is
maintained?  (may not always be 8 spaces).

-jdr-

[EMAIL PROTECTED] wrote:
> 
> sed will do a substitution quite nicely. try
> 
> sed -e 's/      /        / g' < tabbedfile > spacedfile
> 
> between the first two / is a tab, and between the secondand third / is
> the desired number of spaces. The trailing g says to replace all tabs.
> Replace 'tabbedfile' with the filename of the file containing the
> offending tabs. Replace 'spacedfile' with the file name of the output
> file that will now be tab free.
> 
> Check out man sed
> 
> On 19 Jan 2000 03:11:34 +1000 Steve Youngs <[EMAIL PROTECTED]>
> writes:
> >* John  <[EMAIL PROTECTED]> writes:
> >
> >> 1. Using vim, how could I replace tabs with spaces ?
> >
> 
> -----------------
> R. Haehnel
> 
> ________________________________________________________________
> YOU'RE PAYING TOO MUCH FOR THE INTERNET!
> Juno now offers FREE Internet Access!
> Try it today - there's no risk!  For your FREE software, visit:
> http://dl.www.juno.com/get/tagj.

Reply via email to