Unix/Linux Go Back    



shell test command

Shell Programming and Scripting




Kindly Note - This is a Single User Post by Forum Member zaxxon Regarding:
shell test command.
Please Follow The Primary Link Above to View the Full Discussion.

   
Old Unix and Linux 12-19-2008
zaxxon's Unix or Linux Image
zaxxon zaxxon is offline Forum Staff  
code tag tagger
 
Join Date: Sep 2007
Last Activity: 20 October 2017, 2:49 AM EDT
Location: St. Gallen, Switzerland
Posts: 6,575
Thanks: 176
Thanked 560 Times in 481 Posts
test is no program to test if your shell script works. test is used with or without "if" for example, to test if a condition is true or not, to implement a logical flow into scripts. In your script, that smells like homework/classroom stuff, are some loads of "if" tests already. Best talk to your teacher again and tell him that your task is not clear to you.

By the rules of this forum, homework/classroom stuff is forbidden:

(6) Do not post classroom or homework problems.

which you can read here:

The UNIX and Linux Forums - Forum Rules