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" -printExplanation: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 ProOn Sun, Dec 22, 2024, 10:48 Michael via PLUG-discuss <plug-discuss@lists.phxlinux.org> wrote:---------------------------------------------------I figured out how to find the files I errantly copied to another folder and then forgot where it went. Would someone write me a script to find jpg files and JPG files not in /home/bmike1/pictures ?Actually what happened was that I accidentally copied my picture folder into another folder. The battery in the mouse was dying so the mouse was acting erratically.
PLUG-discuss mailing list: PLUG-discuss@lists.phxlinux.org
To subscribe, unsubscribe, or to change your mail settings:
https://lists.phxlinux.org/mailman/listinfo/plug-discuss