[ale] bash scripting question
Geoffrey
esoteric at 3times25.net
Wed Sep 10 20:07:41 EDT 2003
George Carless wrote:
>
> At 07:56 PM 9/10/2003 -0400, you wrote:
>
>> 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.
>>
>>
>> You can't use wild card char. in the [ -f .. ], your best bet is a
>> case statement.
>>
>> You could do it with a for loop:
>
>
> [snip]
>
> Or just pipe ls to grep?
For that matter echo piped to grep...
--
Until later: Geoffrey esoteric at 3times25.net
The latest, most widespread virus? Microsoft end user agreement.
Think about it...
More information about the Ale
mailing list