Brad Lucas

A blog mostly about programming
July 26, 2017

Copy All Pdf Files In Sub-Directories To Another Directory

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