I want to "list" all the files that are NOT open, within a certain directory using the GNU find command. Now, I am able to list the files that are open, but can't figure out a way to do the inverse of it.
find /my/dir/* -exec lsof {} \;
Any ideas how this can be done?