![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| TEST command | amatuer_lee_3 | Shell Programming and Scripting | 4 | 05-09-2008 04:36 AM |
| Another newb question: how to use test for zero-length string ? | lumix | Shell Programming and Scripting | 4 | 12-15-2007 02:43 PM |
| Test command | JWilliams | AIX | 2 | 12-03-2007 11:53 PM |
| the TEST command | marwan | UNIX for Dummies Questions & Answers | 2 | 04-23-2007 03:51 PM |
| history of test command as [ | hadarot | UNIX for Dummies Questions & Answers | 1 | 08-24-2005 09:47 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
question about a 'test' command
Hi all,
I have the following script.Can somone explain what it does.Thanks in advance. if test $# -lt 1 then echo "Message" exit 1 fi |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
help about a 'test' script
Hi all,
I have the following script.Can somone explain to me what it does.Thanks in advance. if test $# -lt 1 then echo "Message" exit 1 fi |
|
#3
|
|||
|
|||
|
This script just test the number of parameters passed to the script. If number of parameters passed is less than 1, it displays 'Message' otherwise does nothing
Hope it helps |
|||
| Google The UNIX and Linux Forums |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|