Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] bash question



Quoth Godwin Stewart (Mon 2003-02-17 01:20:33PM +0100):
>
> On Mon, 17 Feb 2003 21:06:15 +0900, Jean-Christian Imbeault
> <jc@example.com> dropped the scrabble game and created this on the
> floor:
> 
> > I've also tried:
> > 
> > if [ $proc -gt 400 ] then
> >    echo "You have more than 400 procs running"
> > fi
> 
> It should be:
> 
> if [ $proc -gt 400 ]; then
>   echo "foo"
> fi

Sorry to say this, JC, but this is a severe case of lack-of-RTFMing-before-
posting.

A simple Google search would have turned up both of these excellent documents
on Bash scripting:



Not to mention 'man bash', which would have answered your question.

Please do your homework in the future.

-Josh


-- 
Josh Glover <jmglov@example.com>

Associate Systems Administrator
INCOGEN, Inc.
http://www.incogen.com/

GPG keyID 0x62386967 (7479 1A7A 46E6 041D 67AE  2546 A867 DBB1 6238 6967)
gpg --keyserver pgp.mit.edu --recv-keys 62386967

Attachment: pgp00064.pgp
Description: PGP signature


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links