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   -   Original Discussion by foottuns
zaxxon's Unix or Linux Image
zaxxon zaxxon is offline Forum Staff  
code tag tagger
Join Date: Sep 2007
Last Activity: 15 March 2018, 6:17 AM EDT
Location: St. Gallen, Switzerland
Posts: 6,574
Thanks: 178
Thanked 568 Times in 482 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