How can I exclude the output of
lsof -c <processname> /path/
from a list of files in /path/ for example
find /path/ -type f
I was thinking something like this:
find /home/ncr/downloads -type f | egrep "lsof -c rtorrent /home/ncr/downloads"
(replace quotes with backticks) but that doesn't seem to work...
I'd actually like to know this for other purposes as well. What is the best way to do this?