I'm trying to copy massive pictures on a messy old hard drive that I can't open on Windows File Explorer (don't ask...) and I have to for the seek of helping my dear Grandma. I can do, navigate in it with Babun (awesome Windows shell).
So far I've tried commands:
$ find /cygdrive/h/Documents\ and\ Settings -name '*.jpeg|png|JPEG' -exec cp '{}' /cygdrive/f/tof \;
$ find /cygdrive/h/Documents\ and\ Settings -name '*.(jpeg|png|JPEG)' -exec cp '{}' /cygdrive/f/tof \;
No results... Is there something I'm missing?
-name
predicate takes a glob, not a regular expression. try-regex
(or-iregex
for case-insensitive) or use parenthesis to OR multiple-name
predicates, e.g.find ... \( -iname '*.jp*g' -o -iname '*.png' \) ...