This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Copying selective fastq files from a dir to another

Hi I have a directory from were I want to copy selective fastq files. This dir has multiple fastq files which i dont want. Please can someone help in providing the code to do it quick

Here is an example of what I want to capture- the only changing words are "P01_WF10"

RAPiD-Genomics_HL5NLBBXX_PFR_100901_P01_WF10_i5-502_i7-166_S589_L004_R2_001.fastq.gz
RAPiD-Genomics_HL5NLBBXX_PFR_100901_P01_WF11_i5-502_i7-167_S590_L004_R1_001.fastq.gz

sequencing

I think this will do:

cp RAPiD-Genomics_HL5NLBBXX_PFR_100901_P01_WF1* destination/

Perhaps you can also provide the example files that you don't want.

Great, it worked very well- just added bsub to the start to put the job on back end, cheers

0 answers

No answers yet.

Log in to answer this question.