- To: Slug <slug@xxxxxxxxxxx>
- Subject: Re: [SLUG] my next stupid question
- From: Malcolm Tredinnick <malcolm@xxxxxxxxxxxxxxxxx>
- Date: Tue Jul 3 14:56:02 2001
- User-agent: Mutt/1.2.5i
On Tue, Jul 03, 2001 at 12:52:33PM +0800, Malcolm Tredinnick wrote:
> A fairly common idiom for this is:
>
> fileList=`echo *.TXT`
> if [ "$fileList" != '*' ]; then
> ...(insert other stuff here)
> fi
Doh! I didn't actually run this, obviously. The 'if' clause should be
if [ "$fileList" != '*.TXT' ]; then (etc...)
Malcolm
--
No one is listening until you make a mistake.