Carlos E. R. wrote:
I'm trying to produce a list of files with 'find' skipping some paths, but I can't find an optimal method. Maybe I just need more coffe.
What I do at the moment is:
find / -type f | egrep -v "/var/spool/news/" | \ egrep -v "/var/run/udev/links" | egrep -v "/var/run/user/" > filelist
That's pretty much what I usually do, except I tend to combine the patterns into one regex.
Also, I have not found a concoction to use egrep to filter out some strings on one go, like:
... egrep -v "/var/run/udev/links\|/var/spool/news/"
Don't escape the or: ... egrep -v "/var/run/udev/links|/var/spool/news/" -- Per Jessen, Zürich (11.8°C) http://www.dns24.ch/ - free dynamic DNS, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org