Here's a BASH one-liner to find all .jpg files not located in /home/bmike1/pictures:
find / -path /home/bmike1/pictures -prune -o -type f -iname "*.jpg" -print
Explanation:
1. /: Start searching from the root directory.
2.
-path /home/bmike1/pictures
-prune: Exclude /home/bmike1/pictures from the search.
3. -o: Logical OR to continue the search for other conditions.
4. -type f: Search for files only.
5. -iname "*.jpg": Match files with a .jpg extension (case-insensitive).
6. -print: Print the matching file paths.
---
Thanks,
Alexander
Sent from my Google Pixel 7 Pro