find . -name '*.jpg' | cpio -pld ../jpegs
Adjust the find to taste - the magic is that whatever else cpio does it can also take a newline delimited list of filenames and make a sparse, hardlinked subset of a directory
find . -name '*.jpg' | cpio -pld ../jpegs
Adjust the find to taste - the magic is that whatever else cpio does it can also take a newline delimited list of filenames and make a sparse, hardlinked subset of a directory