On 2014-04-27 17:12, Carlos E. R. wrote:
On 2014-04-27 16:28, Anton Aylward wrote:
On 04/27/2014 09:39 AM, Carlos E. R. wrote:
You might also try reversing things.
The first argument to find is a LIST OF DIRECTORIES.
Mmm.... interesting...
[...]
Yep... it works, it seems.
I have:
find "/" -maxdepth 4 -type d > $LISTADO_FIND_DIRS
cat $LISTADO_FIND_DIRS | egrep -v "/var/spool/news/" \ | egrep -v "/var/run/udev/links" | egrep -v "/var/run/user/" \ | egrep -v "/var/run/systemd/" | egrep -v "/var/lib/ntp/proc/" \ | egrep -v "/proc/" > $LISTADO_FIND_PRUNED
while read FILES ; do find "$FILES" -type f >> $LISTADO_FIND done < $LISTADO_FIND_PRUNED
Nope, does not work right. It is searching on the wrong paths: find: ‘/var/run/user/1000/gvfs’: Permission denied find: ‘/home/p2phelper/.gvfs’: Permission denied The reason is that the $LISTADO_FIND_PRUNED contains these entries: /var/lock/gkrellm /var/lock/lvm /var/run /var/run/lightdm /var/run/lightdm/cer /var/run/lightdm/cer2 The '/var/run/user/' entries are missing, but as /var/run is in there, it will be searched again. I have to revert to my previous procedure. -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)