[SunHELP] vi question

Michael Conlen sunhelp at sunhelp.org
Wed Jun 6 17:37:33 CDT 2001


:%s/<tab>/<space>/g

The <tab> and <space> should be a tab and a space, not the text.

To count you could cat the file to tr, remove everything but space, tab and
enter and do a wc -c on the result.

--
Groove On Dude
Michael Conlen
Obfuscated Networking
meconlen at obfuscated.net


> -----Original Message-----
> From: sunhelp-admin at sunhelp.org [mailto:sunhelp-admin at sunhelp.org]On
> Behalf Of Shahid Shahzad-W5106C
> Sent: Tuesday, June 05, 2001 6:52 PM
> To: 'sunhelp at sunhelp.org'
> Subject: [SunHELP] vi question
>
>
> Hi,
> Does anyone know how to
> 1) Replace tabs with spaces in a file using vi editor.
> 2) How to find the Number of tabs, spaces and returns in a file using vi.
>
> Thanks,
> SS
> _______________________________________________
> SunHELP maillist  -  SunHELP at sunhelp.org
> http://www.sunhelp.org/mailman/listinfo/sunhelp
>




More information about the SunHELP mailing list