> On Tue, Aug 18, 2009 at 07:50:45AM -0500, Marti, Rob wrote: > > [root@ab1-4-160 ~]# if [ -d /etc ] && [ -d /home ]; then echo "Yes."; fi > > Yes. > > Or, maybe less expensive: > > if [ \( -d /etc \) -a \( -d /home \) ]; then echo "Yes."; fi > > Cheers, > -- > Dave Ihnat > dihnat@xxxxxxxxxx Dave, Can you explain why it's less expensive? Yong Huang -- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list