![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| TAHI Test Suite 3.0.13 (IPv6 Conformance Test Tool branch) | iBot | Software Releases - RSS News | 0 | 04-06-2008 01:20 PM |
| cat operation | trichyselva | UNIX for Dummies Questions & Answers | 0 | 03-24-2008 06:55 AM |
| Help with arithmetic operation | emjayshaikh | Shell Programming and Scripting | 3 | 09-24-2007 12:44 AM |
| Keithley Introduces Linux-Based RF Parametric Test Systems - Test and Measurement.com | iBot | UNIX and Linux RSS News | 0 | 07-23-2007 11:30 AM |
| AIX 4.3 Openssh 3.7.1.0 Operation | ripley | AIX | 2 | 03-07-2005 01:56 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Hi - I'm finding some unexpected operation when testing in a ksh script.
EG TST=`grep donut file1` FSZ=`ls -l file1 | awk '{ print $5 }'` if [ -n $TST ] ; then if [ $FSZ > 200 ] ;then echo "Greater than 200" else echo "Less than 200" fi elif [ -z $TST ] ;then echo "ZERO" fi If FILE1 does NOT contain the string 'donut' I would expect the -z to be invoked but it doesn't because the first test just fails - how do I avoid this ?? thanks |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|