I have close to hundreds of
.fastq files in different subfolders under a shared drive along with many big files such as
.bam files. I want to copy only the
.fastq files to another location in a same folder to perform an analysis. How can I do it on a Mac? I tried:
find -E . -iregex '.*/*\.fastq'
which showed all the files along with the relative path, but I don't need the path. And I cannot figure out a pipeline to copy them to another location.