your can also try: for f in a b c d e f g h i j k l m n o p q r s t u v w x y z do rm ${f}* done you might need to repeat for capitals and numbers. On Sat, 25 Dec 2004, Gustavo Guillermo Perez wrote: > El Jueves 23 Diciembre 2004 15:40, Mário Gamito escribió: > > 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. > if is Just a directory, call rm with the name of the directory > like that > rm -rf /dirname > where the r is for recursive, sometimes find hangs with more than 65535 files > in a single directory in some older versions (I still using some ones). > > If you have a lot of folders with a lot of files, then: > > find -type d | while read dir; do rm -rf "$dir" ; done > > "" in $dir is for names with spaces. > > > Mery Christmas > > -- John Julian Computer Geek cell: 248-376-6364 pager: 800-621-4951 - : 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