Arg list too long error? Here's a work-around.
D'Arcy J.M. Cain
darcy at druid.uucp
Fri Nov 16 11:11:40 AEST 1990
In article <1990Nov14.192707.1099 at 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 at druid) |
D'Arcy Cain Consulting | I support gun control.
West Hill, Ontario, Canada | Let's start with the government!
+ 416 281 6094 |
More information about the Comp.unix.misc
mailing list