Re: test for directory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux