home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / shell / 3565 < prev    next >
Encoding:
Internet Message Format  |  1992-08-21  |  1.5 KB

  1. Path: sparky!uunet!cs.utexas.edu!ut-emx!ibmchs!auschs!awdprime.austin.ibm.com!scnteam1.austin.ibm.com!chuckt
  2. From: chuckt@scnteam1.austin.ibm.com (Charles N. Tomlinson)
  3. Newsgroups: comp.unix.shell
  4. Subject: Re: If shell command switches.
  5. Message-ID: <1992Aug18.184536.3136@awdprime.austin.ibm.com>
  6. Date: 18 Aug 92 18:45:36 GMT
  7. References: <Bss2xD.GKE@root.co.uk> <22412@sybase.sybase.com> <4755@daily-planet.concordia.ca>
  8. Sender: news@awdprime.austin.ibm.com (USENET News)
  9. Organization: IBM, Austin
  10. Lines: 26
  11.  
  12.  
  13. >does anyone know where I can find the complete switch listing 
  14. >of the "if" statement?  I can't seem to find it anywhere..ie:
  15. >man csh/tcsh/ksh.., yet I know of the if [-f] and if [-r] 
  16. >only because I saw it used in other scripts.  There are other
  17. >switches..but apparently sparse documentation as to what they 
  18. >are and do.
  19. >
  20. >---
  21. >Dan.
  22.  
  23. If you look up the man pages on the command "test" or "[ ]",  this should give
  24. you the list that you are looking for.  
  25.  
  26. Chuck T.
  27.  
  28. ---
  29.  
  30. ================================================================================
  31.   Peasant 1 : " He must be a king. "    | Charles N. Tomlinson    (Chuck)
  32.   Peasant 2 : " Why? "                  | Phone: @AIC: (512) 794-8016 ext.384
  33.   Peasant 1 : " He hasn't got sh*t all  |        @IBM: (512) 823-8845
  34.                 over him."              | 
  35.                                         |
  36.   Monty Python's "The Holy Grail"       | Inet  : chuckt@scnteam1.austin.ibm.com
  37. ================================================================================
  38.