On Fri, 19 Apr 2002, at 5:25pm, Thomas M. Albright wrote:
> it's the only way i know to add to variables:
>  today=`date +%j`
>  let tomorrow=$today+1

  If you are not interested in portability to older shells, here are some 
optimizations:


        math=$(( 1 + 1 ))               # internal, easier, nestable

        if [[ a = b ]]; ...             # internal

        output=$( command ... )         # easier, nestable



  Anyone else have some tips or tricks they would like to share?


> 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.

  First rule of programming: Everything takes longer than you thought.  :-)

> I know just a little bit about scripting in (t)csh.

  Try to keep it that way.  ;-)

-- 
Ben Scott <[EMAIL PROTECTED]>
| The opinions expressed in this message are those of the author and do not |
| necessarily represent the views or policy of any other person, entity or  |
| organization.  All information is provided without warranty of any kind.  |


*****************************************************************
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*****************************************************************

Reply via email to