[ale] bash scripting question

David Corbin dcorbin at machturtle.com
Wed Sep 10 20:21:55 EDT 2003


I like....

[ `ls ... | wc -l ` -gt 0 ]

On Wednesday 10 September 2003 19:49, Kevin Krumwiede wrote:
> I need a boolean statement that will evaluate to true if one or more files
> matching a wildcard exist.  I tried [ -f ... ], it works if there is
> exactly one matching file, but not if there are more.
>
> Thanks,
> Krum
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale

-- 
David Corbin <dcorbin at machturtle.com>



More information about the Ale mailing list