Re: Deleting many files from a directory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



do a loop

for i in filenames*
do
rm $i
done

On Dec 23, 2004, at 3:40 AM, Mário Gamito wrote:

Hi,

When we have too many files in a directory, let's say thousands, we cannot rm -f * on them. The system says there are too many files.
So, one must go through a tedious process of deleting by parts.


Is there a way to wipe them all at onde ?

Thank you.

Warm Regards.
--
Mário Gamito
Administração de sistemas e desenvolvimento
Netual - Multimédia e Telecomunicações, Lda.
Rua João Afonso, Nº1
3800-198 Aveiro - Portugal
Tel. +351 234 371 431 / Fax. +351 234 371 438
E-mail: gamito@xxxxxxxxx
www.netual.pt
-
: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html




----------------- Hal Wigoda

-
: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Newbie]     [Audio]     [Hams]     [Kernel Newbies]     [Util Linux NG]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Device Drivers]     [Samba]     [Video 4 Linux]     [Git]     [Fedora Users]

  Powered by Linux