On Fri, 19 Apr 2002 [EMAIL PROTECTED] wrote:
> In a message dated: Fri, 19 Apr 2002 08:46:56 EDT
> Benjamin Scott said:
>
> > While we are on the subject of shell programming, it is better to use this
> >
> > let due=10#$(date +%j -d 04/01/2002)
> >
> >construct. The $(...) syntax can be nested, and is easier to read than the
> >`...` syntax.
>
> What's with the 'let' keyword? I've seen it before, but I find it's
> use so rare that I just realized I don't really understand it's
> proper use?
>
it's the only way i know to add to variables:
today=`date +%j`
let tomorrow=$today+1
> Ben, since you're advocating the use of the $(...) construct, why
> didn't you take it further and provide an example such as:
>
> pll@tater:~> (due=10#$(date +%j -d 04/01/2002)) ; echo $due
> 91
> or:
> pll@tater:~> $(due=10#$(date +%j -d 04/01/2002)) ; echo $due
> 91
>
>
> Just curious. My shell programming isn't what it could be, since
> perl almost always has an easier and more efficient way of doing
> things :)
>
I know some bash. I'm actually moving along quite well on this
particular project, though it looks like it's going to be a lot longer
then I origianally thought.
I know just a little bit about scripting in (t)csh.
I know *NO* perl. Or python. Or any other script language. I'm teaching
myself C, but this particular project can't wait that long. :)
--
TARogue (Linux user number 234357)
(from the .sig file of Rodrigo Henriquez M.)
(o_
//\
V_/_
May the penguin be with you!
*****************************************************************
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*****************************************************************