This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: rm * , ls * : Invalid argument


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Dave Korn on 8/24/2006 1:43 PM:
>> Is there any way around to do what I want , i.e remove a large number of log
>> files using the rm command with the wildcard * argument.
> 
>   "find . -maxdepth 1 -type f -print0 | xargs -0 rm"

Except that deletes files starting with . (when rm * does not), and does
not delete symlinks (when rm * does).  Also, you could save a process or two:

find -name '*.log' -delete

- --
Life is short - so eat dessert first!

Eric Blake             ebb9@byu.net
volunteer cygwin findutils maintainer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFE7gaE84KuGfSFAYARAjCDAJ9T1eBfELeoIlcuhyX9IcnZJpG6gQCfRjUs
djb4wKwykyAzmZJZNwtPWmE=
=MWE9
-----END PGP SIGNATURE-----

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]