79427610

Date: 2025-02-10 15:52:58
Score: 1
Natty:
Report link
find some/path -exec sh -c 'program "$1" || kill "$PPID"' sh {} \; 

or:

find some/path -exec sh -c 'for f in "$@"; do program "$f" || kill "$PPID"; done' sh {} + 
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: fumiyas