The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Operating Systems > 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 08:36 AM
Another newb question: how to use test for zero-length string ? lumix Shell Programming and Scripting 4 12-15-2007 05:43 PM
Test command JWilliams AIX 2 12-04-2007 02:53 AM
the TEST command marwan UNIX for Dummies Questions & Answers 2 04-23-2007 07:51 PM
history of test command as [ hadarot UNIX for Dummies Questions & Answers 1 08-25-2005 01:47 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-11-2006
sam_78_nyc sam_78_nyc is offline
Registered User
  
 

Join Date: Jul 2006
Posts: 16
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
  #2 (permalink)  
Old 07-11-2006
sam_78_nyc sam_78_nyc is offline
Registered User
  
 

Join Date: Jul 2006
Posts: 16
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 (permalink)  
Old 07-11-2006
roopla roopla is offline
Registered User
  
 

Join Date: Jul 2006
Posts: 8
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
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:23 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0