-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Content-ID: <alpine.LSU.2.11.1404290425260.20923@minas-tirith.valinor> El 2014-04-28 a las 03:07 +0200, David Haller escribió:
On Sun, 27 Apr 2014, Carlos E. R. wrote:
Some of those directories were supposedly excluded:
You've got '-prune' backwards. It should be:
find "$DONDE" \ -path "/var/spool/news" -prune \ -o -path '/var/run/udev/links' -prune \ ... -o -path "/proc" -prune \ -o -type f -print
Ah... :-) Let's try, with a reduced search for testing: minas-tirith:~ # find /var/run -path /var/run/udev/links -prune find: ‘/var/run/user/1000/gvfs’: Permission denied /var/run/udev/links minas-tirith:~ # Nope. Ok, let's try again: minas-tirith:~ # find /var/run -path /var/run/udev/links -prune -o -type f -print /var/run/dhclient-enp0s29f7u1.pid /var/run/atd.pid /var/run/suspend.grubonce.default /var/run/pm-suspend /var/run/pm-utils/pm-suspend/storage/state:cpu1_governor /var/run/pm-utils/pm-suspend/storage/state:cpu0_gover ... Right, that's it :-) Why is "-print" needed? minas-tirith:~ # find /var/run -path /var/run/udev/links -prune -o -type f | wc -l find: ‘/var/run/user/1000/gvfs’: Permission denied 476 minas-tirith:~ # find /var/run -path /var/run/udev/links -prune -o -type f -print | wc -l find: ‘/var/run/user/1000/gvfs’: Permission denied 475 minas-tirith:~ # Just one line less... which one? Heh! minas-tirith:~ # diff p1 p2 207a208
/var/run/udev/links minas-tirith:~ #
Precissely that one! Ok, so I need that "-print", but I don't understand why it has that effect... :-? - -- Cheers Carlos E. R. (from 13.1 x86_64 "Bottle" (Minas Tirith)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iF4EAREIAAYFAlNfDgEACgkQja8UbcUWM1y4HAD/YEQXEGnM1R+UpbEH4Tmcz0Zb 5utinlXmsX4CtARzFu8A/3NZ+QODvO3MqyeGKVhHTCoAdSSgpHNQzIGFE4OzE25w =eSXM -----END PGP SIGNATURE-----