test for directory

Slackli User slackliuser at gmail.com
Tue Aug 18 12:47:18 UTC 2009


Hi,

I run this in a bash shell but got wrong.

if [ -d /path/a && -d /path/b ]; then do something; fi

what's the correct syntax for this?

(I remember I once could do this but this time it failed, :-) )

Thanks.




More information about the redhat-list mailing list