1829187 Members
9995 Online
109986 Solutions
New Discussion

Re: If sentence ..

 
SOLVED
Go to solution
Patrick Wallek
Honored Contributor

Re: If sentence ..

RTFM -- Read The Fine Manpage

# man csh

or

# man sh-posix

will give you almost all information you could ever want to know about the shells and their syntax. I am almost certain that the information you seek about the '-s' flag is there.
Oviwan
Honored Contributor

Re: If sentence ..

James R. Ferguson
Acclaimed Contributor

Re: If sentence ..

Hi Manuales:

'-s' tests to see if a file exists AND has a size greater than zero.

The manpages for 'sh-posix' will point you to the manpages for 'test' which is where you will find this conditional and many others:

http://www.docs.hp.com/en/B2355-60103/test.1.html

Regards!

...JRF...