Monday, January 12, 2015

How to copy specific files from folder

To copy all .bam files from a specific folder to another folder use find

find /PATH_TO_INPUT_FOLDER/ -name \*bam -exec cp -rfp {} PATH_TO_OUTPUT_FOLDER \;

No comments:

Post a Comment