I have a Master folder with following subfolders:
- f1
- f2
with jpeg/jpg files in each subfolder.
I do find . -maxdepth 2 -type f -iname '*.jp*g'
and getting output:
- ./f1/IM_48902.jpg
- ./f1/IM_48903.jpg
- ./f2/IM_48900.jpg
- ./f2/IM_48904.jpg
How I can exclude '/f1' and '/f2' from output and get such output?
- ./IM_48902.jpg
- ./IM_48903.jpg
- ./IM_48900.jpg
- ./IM_48904.jpg
[UPD] my full script is find . -maxdepth 2 -type f -iname '.jpg' ! -path "/excluded/" -print0 | xargs -I{} -0 -n1 -P3 sh -c 'exiv2 -q -K Xmp.dc.creator -K Xmp.photoshop.Credit -Pv "$1" > "/Users/adm/Desktop/$1.out"' -- {}
find
version from which OS?