The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > AIX
Google UNIX.COM


AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

More UNIX and Linux Forum Topics You Might Find Helpful
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

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 07-11-2006
Registered User
 

Join Date: Jul 2006
Posts: 15
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
Reply With Quote
Forum Sponsor
  #2  
Old 07-11-2006
Registered User
 

Join Date: Jul 2006
Posts: 15
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
Reply With Quote
  #3  
Old 07-11-2006
Registered User
 

Join Date: Jul 2006
Posts: 7
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
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 06:51 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0