Copy only certain file types from a folder structure to another find a \( -name "*.png" -or -name "*.jpg" \) -exec cp {} b \;