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

Re: I'm too stupid to use find, can someone help me out, please?



Joerg Johannes <liste_joerg@gmx.de> writes:

> jorg@localhost:/tmp/$ find . -type l -exec rm {};

In addition to what others have said, may I suggest the following:

   find . -type l -print0 | xargs -0r rm

It is more efficient as it doesn't spawn a new "rm" process for every
link to be deleted.

Martin


-- 
   ,--.    Martin Dickopp, Dresden, Germany                 ,= ,-_-. =.
  / ,- )   http://www.zero-based.org/                      ((_/)o o(\_))
  \ `-'                                                     `-'(. .)`-'
   `-.     Debian, a variant of the GNU operating system.       \_/



Reply to: