KinglyPack
New Member
Oh hai everyone,
First post, much excite...
So, I was trying to pull out all the .png images from a series of sub-directories all called 'Images', these were each within a directory with a unique name, shown with a the wildcard * below.
find /Documents/PB_Export/*/Images/ -name '*png' -print | xargs -i% mv % /Documents/PB_Export/Output/
It worked, but it pulled every .png image from every sub-directory below the wild card, not just the images folder.
What did I do wrong?
(Using Ubuntu 16...ish)
Thanks in advance!
Ollie
First post, much excite...
So, I was trying to pull out all the .png images from a series of sub-directories all called 'Images', these were each within a directory with a unique name, shown with a the wildcard * below.
find /Documents/PB_Export/*/Images/ -name '*png' -print | xargs -i% mv % /Documents/PB_Export/Output/
It worked, but it pulled every .png image from every sub-directory below the wild card, not just the images folder.
What did I do wrong?
(Using Ubuntu 16...ish)
Thanks in advance!
Ollie