Mailing List Archive


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

Re: [tlug] bash question



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

-- OR --

[ $proc -gt 400 ] && echo "foo"

-- 
G. Stewart   --   gstewart@example.com -- gstewart@example.com
Registered Linux user #284683

GnuPG key  : BA3D01C6 (pgp.mit.edu)
Fingerprint: C3DF C686 6572 6E59 E3E4  0F40 2B9A 2218 BA3D 01C6
---------------------------------------------------------------
Seen in the classified ads:
NICE PARACHUTE: NEVER OPENED - USED ONCE


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links