How to make this if statement in bash

Posted by Selmak on Stack Overflow See other posts from Stack Overflow or by Selmak
Published on 2010-01-17T15:23:42Z Indexed on 2010/05/09 5:08 UTC
Read the original article Hit count: 199

Filed under:
|

Hi,

I'm having a hard time figuring out how to do this if statement. I want to do this:

IF (the function has only 1 argument AND $1 is a directory (in the current folder)) OR IF (the function has 2 arguments AND $1 is NOT a directory ) THEN

....

END

Sorry if it's not very clear,

Thanks in advance

© Stack Overflow or respective owner

Related posts about bash

Related posts about if-statement