Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: /proc slows % echo /**/*/etc/r*(/N)



On Sun, Jan 21, 2024 at 10:08:27AM -0800, Ray Andrews wrote:

But I'm holding out for a way of filtering out all those virtual directories.  There's a few of them.

The heretic's solution: locate might be your friend, as it already built a
database of pathnames:

locate /etc/ | egrep -v '^/(proc|foo|bar|baz)'

      --jc

P.S. Or mdfind instead of locate on Macs. And maybe something else on
non-unixoid systems ...

--
 Replacing an offensive term to something different just converts the "something
 different" into an offensive term.




Messages sorted by: Reverse Date, Date, Thread, Author