Removing thousands of files using rm
From: Steve Bertrand (iaccounts_at_ibctech.ca)
Date: 07/06/04
- Previous message: lists: "Re: ipfw count rules to count traffic to virtual ip's"
- Next in thread: Lowell Gilbert: "Re: Removing thousands of files using rm"
- Reply: Lowell Gilbert: "Re: Removing thousands of files using rm"
- Reply: Andrew L. Gould: "Re: Removing thousands of files using rm"
- Reply: Len Conrad: "Re: Removing thousands of files using rm"
- Reply: Richard P. Williamson: "Re: Removing thousands of files using rm"
- Reply: Bill Moran: "Re: Removing thousands of files using rm"
- Reply: Kirk Strauser: "Re: Removing thousands of files using rm"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 6 Jul 2004 10:15:54 -0400 (EDT) To: freebsd-questions@freebsd.org
I often have the need to remove hundreds or even thousands of files from a
single directory (very often). Using rm, I usually get:
pearl# rm -rvf *
/bin/rm: Argument list too long.
Is there any way to work around this instead of having to select a small
bunch of files at a time to remove?
The directory I am trying to remove the files from is always hot, so
deleting the directory is unfortunately not an option. (I don't think).
Any assistance is greatly appreciated.
Tks all,
Steve
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
- Previous message: lists: "Re: ipfw count rules to count traffic to virtual ip's"
- Next in thread: Lowell Gilbert: "Re: Removing thousands of files using rm"
- Reply: Lowell Gilbert: "Re: Removing thousands of files using rm"
- Reply: Andrew L. Gould: "Re: Removing thousands of files using rm"
- Reply: Len Conrad: "Re: Removing thousands of files using rm"
- Reply: Richard P. Williamson: "Re: Removing thousands of files using rm"
- Reply: Bill Moran: "Re: Removing thousands of files using rm"
- Reply: Kirk Strauser: "Re: Removing thousands of files using rm"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|