Newsgroups: comp.unix.misc
Path: utzoo!telly!druid!darcy
From: darcy@druid.uucp (D'Arcy J.M. Cain)
Subject: Re: Arg list too long error?  Here's a work-around.
Organization: D'Arcy Cain Consulting, West Hill, Ontario
Date: Fri, 16 Nov 90 00:11:40 GMT
Message-ID: <1990Nov16.001140.11923@druid.uucp>
Keywords: find
References: <1990Nov14.192707.1099@millipore.com>

In article <1990Nov14.192707.1099@millipore.com> Jeff Lampert writes:
> [...]
>The 'find' command does'nt seem to have the 'Arg list' limitation.  It also
>has the feature of being able to execute a command on the files that it finds.
>So, by giving the command:
>
>find . -name "SRW*" -exec rm {} \;
>
>I was able to delete all the SRW files.
> [...]
>Hope this helps.  Any better ways?  Please E-Mail me.  Any way to aviod
>recursion?  Again, please let me know...

ls | grep '^SRW' | while read X
do rm $i
done

-- 
D'Arcy J.M. Cain (darcy@druid)     |
D'Arcy Cain Consulting             |   I support gun control.
West Hill, Ontario, Canada         |   Let's start with the government!
+ 416 281 6094                     |
