Re: {SPAM?} Re: [flalug] {SPAM?} 1st post

From: Eben King (eben1@tampabay.rr.com)
Date: Thu Feb 17 2005 - 01:20:01 EST


On Thu, 17 Feb 2005, Ron Youvan wrote:

> > That's great then!
> > Does BASH have it's own scripting language or is it
> > PERL? Both?
>
> Just my opinion here, MS DOS's batch language is a
> subset of UNIX scripting language, which is basically the
> same as Basic, but with two differences. (that I am aware
> of)
>
> First: there is only integer math.

I am not aware of any floating-point capabilities in sh, bash, ksh, or
pdksh. AFAIK, you have to use external programs for that. ICBW; do you
know of any? Is it a recent development?

> I love and recommend "O'reilly's bash scripting book", get the latest
> edition that has been printed. Many commands and some "things" are quite
> obscure and many are not at all "self explanatory"
>
> Example:
>
> FileName=${1%.*}.xmp
>
> This creates a variable (FileName) from the first command
> line parameter with the extension changed from any to .xmp
> it's one of those "keep the book

Or man page. I know that you can replace leading or trailing substrings in
bash; I always forget if it's # or %, so I have to search for %% (easier to
type than \#\#) in 'man bash'.

> on your knee until you have enough examples in /usr/local/bin to use as
> references.

-- 
-eben    ebQenW1@EtaRmpTabYayU.rIr.OcoPm    home.tampabay.rr.com/hactar

Only two things are infinite, the universe and human stupidity, and I'm not sure about the former." - Albert Einstein



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 20:34:23 EDT