[wplug] shell script madness

Eric C. Cooper ecc at cmu.edu
Wed Jul 16 12:24:42 EDT 2003


On Wed, Jul 16, 2003 at 11:51:41AM -0400, Eric C. Cooper wrote:
> You need to use [ ... != 0 ] if you want to treat the text output of
> a command like `wc -l` as a number.

Actually, != is still doing string comparison (which is OK here).  But
when it matters, use -ne, -lt, -gt, etc. to compare integers.

-- 
Eric C. Cooper          e c c @ c m u . e d u



More information about the wplug mailing list