removing a lot of old files

From: Altamiro M. Diniz <diniz_at_darumaorga.com.br>
Date: Thu, 24 Feb 2000 11:31:58 -0200

Hi all,

inside a sub-directory there are xxxx.dat.old (more than 100k) files
that I have to remove.

I mustn't remove the subdir.

Searching in the archieve, I found the following suggestions:
# find ./ -type f -exec rm {} \;
answer: /usr/bin/find: arg list too long

and
# ls | xargs -i rm -f {}
answer: /usr/bin/ls: arg list too long

I tried these and some variants commands but... not success :-(

TIA,
-- 
  Altamiro M. Diniz
Received on Thu Feb 24 2000 - 13:32:53 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:40 NZDT