On Sun, 06 Mar 2005 22:25:42 -0700, Matt Alexander <
lowbassman@gmail.com> wrote:
> Craig White wrote:
>
> >IANAP (I am not a programmer) ;-)
> >
> >but I have been impersonating one lately...
> >
> >I submitted code to horde project and one thing they objected to was
> >using tabs for indents instead of spaces. I now know how to create
> >unified diffs, diffs against cvs and this all is a learning process for
> >me.
> >
> >Language is php
> >
> >Editor is emacs
> >
> >It seems that there are times when tabs are automatically converted into
> >space indentations and sometimes they aren't.
> >
> >Is there a method to convert all the tabs to spaces?
> >
> >
> >
> >
> tr '\t' ' ' < tabfile.txt > spacefile.txt
Also, I should add that if you want multiple tabs reduced to a single
space, use the "-s" option:
tr -s '\t' ' ' < tabfile.txt > spacefile.txt
--
Get Firefox!
http://getfirefox.com/
---------------------------------------------------
PLUG-discuss mailing list -
PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss