[ale] Bash scripting question #2
Dow_Hurst
dhurst at mindspring.com
Fri Feb 18 09:29:04 EST 2005
Geof,
Thanks for testing it in bash! I use that right off.
Dow
-----Original Message-----
From: Geoffrey <esoteric at 3times25.net>
Sent: Feb 18, 2005 8:07 AM
To: Atlanta Linux Enthusiasts <ale at ale.org>
Subject: Re: [ale] Bash scripting question #2
Geoffrey wrote:
> That won't work, that's why I used the '-o' syntax in an earlier post.
> You can do it this way:
>
> if [ -f foo ] || [ -f bar ]....
>
> But that's more typing.. :)
Just tested the following in bash, which was originally a ksh construct:
if [[ -f foo || -f bar ]]; then ....
And it works in bash as well.
--
Until later, Geoffrey
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale
No sig.
More information about the Ale
mailing list