Alister Waller wrote:
> 
> I should point out that there are 1000's of files in this directory so doing
> an ls of all of them might not be the best way.

then you just start off

for o in a b c d e f g ........x y z 
do 
> > if [ ! -z $(/bin/ls -1 $o | grep -c .TXT$) ]; then echo pants; fi
done

or whatever.

been there recently. {:-)

--
   Terry Collins {:-)}}} Ph(02) 4627 2186 Fax(02) 4628 7861  
   email: [EMAIL PROTECTED]  www: http://www.woa.com.au  
   WOA Computer Services <lan/wan, linux/unix, novell>

 "People without trees are like fish without clean water"

-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to