On Thu, Dec 02, 1999 at 02:18:37PM +1100, Iain Wade wrote:
: #!/usr/bin/perl -pi
: s/\t/|/g;

Surely someone can beat 9 bytes..  Anyone?  Anyone?  Beuller?  Wait!  I can!

#!/usr/bin/perl -pi.bak
y/\t/|/;

That's 8 bytes. :-P

: all conversion is done inplace .. thanks to Charles Galpin for the idea...

The only problem is you just lost your source file..  If you're going to
do inplace edits, do yourself a favor and either make that a -pi.bak,
OR

tab2pipe < foo

The redirection will cause the output to be STDOUT.

-- 
                 Jason Costomiris <><
            Technologist, cryptogeek, human.
jcostom {at} jasons {dot} org  |  http://www.jasons.org/


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to