Copy All Pdf Files In Sub-Directories To Another Directory

July 26, 2017

Had a ton of pdf files in numerous sub-directories. The goal was to collect them into a single directory

$ DEST="directory where you want to collect your pdf files"

$ find . -type f -name \*.pdf -exec cp \{\} $DEST \;

Tags: bash