[Gllug] Stripping whitespace in bash script

ccooke ccooke at gkhs.net
Sun Aug 13 13:27:05 UTC 2006


On Sun, Aug 13, 2006 at 10:58:12AM +0100, Richard Jones wrote:
> On Sun, Aug 13, 2006 at 02:41:53AM +0100, ccooke wrote:
> > Bah. I never seem to talk about anything but shell on this list. In the
> > interest of balance: Given a choice of python or ruby, what would be the
> > best language to learn next?
> 
> Pah - that's not much of a choice.  Two scripting languages which
> differ in minor syntactic changes alone?  Learn a functional language
> and do something really new ...
> 
> Rich. (OCaml, of course)

I learned Haskell a few years back, but... I've never used it since. The
only languages I actually use a lot of are the ones I'm paid to be good
at - which means shell and perl, mainly.

-- 
d=(1 0 6 0 1 0 5 5 41 5 3 12 4 5 15 1 4 -2 5 5 0 5 4 24 3 5 27 1 3 -2 1 3 6)
a=0;while :;do ((v=(c=a)+3));((x=d[d[a]]-d[d[a+1]]));d[d[a]]=$x;((a=d[d[a]]\
<0?${d[a+2]}:v));case $a in -1)read d[d[c]];a=$v;;-2)echo ${d[d[c+1]]};a=$v\
;;0)exit;;esac;done 2>&- # Charles Cooke, Sysadmin.  
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list