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. -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
- [SLUG] my next stupid question Alister Waller
- Re: [SLUG] my next stupid question Mike Holland
- Re: [SLUG] my next stupid question Jeff Waugh
- Re: [SLUG] my next stupid question John Clarke
- RE: [SLUG] my next stupid question Alister Waller
- Re: [SLUG] my next stupid question Malcolm Tredinnick
- Re: [SLUG] my next stupid question Malcolm Tredinnick
- Re: [SLUG] my next stupid question Andre Pang
- Re: [SLUG] my next stupid question Jeff Waugh