BASH 46
Find a folder that does NOT contain a specific file By AndrzejL on 13th July 2024 01:22:15 AM
  1. find ./* -type d '!' -exec sh -c 'ls -A "{}" | grep --quiet "folder.jpg"' \; -print | grep '('
  2.  
  3. find ./* -type d '!' -exec sh -c 'ls -A "{}" | grep --quiet "folder.jpg"' \; -print

Paste is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.