
В Sun, 27 Apr 2014 22:43:02 +0200 "Carlos E. R." <robin.listas@telefonica.net> пишет:
The "find" command I'm running now is this:
find "/" -type f \ -prune -o -path '/var/spool/news' \ -prune -o -path '/var/run/udev/links' \ -prune -o -path '/var/run/user' \ -prune -o -path '/var/run/systemd' \ -prune -o -path '/var/lib/ntp/proc' \ -prune -o -path '/proc' \ -prune -o -path '/run/udev/links' \ > $LISTADO_FIND
And the directories it appears to find are:
‘/var/run/user’ ‘/var/run/systemd’ ‘/var/run/udev/links’ ‘/var/spool/news’ ‘/var/lib/ntp/proc’ ‘/proc’
That is, it finds exactly those I tell it avoid.
No you did not. You misunderstand how -prune works. To prune this list you need \( -path /var/spool/news -o -path /var/run/udev/links -o ... \) -prune -o \( -type f <whatever you want to do with non-pruned paths> \)