How to Exclude a Directory While Finding Files in Linux

PHOTO EMBED

Wed Aug 04 2021 07:39:33 GMT+0000 (Coordinated Universal Time)

Saved by @mdcx #bash

$ find . -name './test' -prune -o -name 'file_*' -print
content_copyCOPY

https://www.linuxshelltips.com/exclude-directory-while-finding-files-in-linux/