AW: shell question

From: Florian Meister (Florian.Meister@medienhaus.at)
Date: Tue Aug 09 2005 - 13:47:21 EDT


Yes there is ;)

find . -name "*" -exec rm -f {} \;

Executes after every found file rm -f and appends the filename.

Cu, florian

----------------------------------------------------------------------
          (__) Florian Meister
          (oo)
   /-------\/ florian.meister@medienhaus.at
  / | || +43 5572 501 134
 * ||w---||
    ^^ ^^ "The only problem with troubleshooting is that
                              sometimes trouble shoots back."
----------------------------------------------------------------------
-----Urspr|ngliche Nachricht-----
Von: sunmanagers-bounces@sunmanagers.org
[mailto:sunmanagers-bounces@sunmanagers.org] Im Auftrag von Alexander
Gesendet: Dienstag, 09. August 2005 16:08
An: sunmanagers@sunmanagers.org
Betreff: shell question

Hi All,

I've got some tricky question.
Assume you need to remove all files from a directory

You issue
#rm -rf *

But if you need to remove a million files. I suppose that in some shells it
won't work

The question. Is there any way to remove a big amount of files.

Best Regards
Alexander
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:31:16 EDT