Busted on all accounts!
Hard crowd tonight ;-)

On Wed, 1 Dec 1999, Jason Costomiris wrote:

> On Wed, Dec 01, 1999 at 08:38:35PM -0600, Rick L. Mantooth wrote:
> : #!/bin/sh
> : # tabs.awk
> : # Usage: cat Some_File | tabs.awk
> 
> You lose points for the spurious use of cat. :-)  Double point loss for 
> invoking bash, then awk on top of that, rather than just 

Guilty as charged

> 
> #!/usr/bin/awk -f
> {gsub("\t","|",$0); print $0}
> 
> : # or cat Some_File | tabs.awk > New_File
> : awk '{gsub("\t","|",$0); print $0}'
> : #end tabs.awk
> 
> Not bad though.. :-)  Try this on for size..

Caution, brain cramp:
I stopped after "chomp" and "chop" ...
I'll pick the perl book back up, honest, really, I will...

> 
> #!/usr/bin/perl
> while(<>){s/\t/|/g;print;}
> 
> Invoke this as:
> 
> convert < infile > outfile
> 
> perl -e "print join q/ /,split(q/z/,reverse qq/rekcahzlrepzrehtonaztsuj/);"
> 
> -- 
>                  Jason Costomiris <><
>             Technologist, cryptogeek, human.
> jcostom {at} jasons {dot} org  |  http://www.jasons.org/
> 
> 

--
Rick L. Mantooth
[EMAIL PROTECTED]
Always remember you're unique, just like everyone else.


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

Reply via email to