Runaway newsfiles break ls
Karl Kleinpaste
karl at triceratops.cis.ohio-state.edu
Thu Mar 2 01:43:33 AEST 1989
pjh at mccc.UUCP (Pete Holsberg) writes:
I have so many .ara????, .arb????, .ina????? and .inb??? in
/usr2/spool/news that any command that uses metacharacters returns with
the "too many arguments" message, and ls runs out of memory and dumps core!
How can I either process these or get rid of them?
# for i in 0 1 2 3 4 5 6 7 8 9
> do
> for j in ar in
> do
> for k in a b
> do
> rm .$j$k*$i
> done
> done
> done
That should give it to the shell in metachar-manageable pieces. But
don't expect it to be fast.
If not, there's always "rm -fr ..."
--Karl
More information about the Comp.sys.att
mailing list