Question: how to write all pair end file name in a tab delimited format
0
gravatar for Bioinfonext
4 months ago by
Bioinfonext250
Korea
Bioinfonext250 wrote:

I do have pair-end file name like this, could you please share a command that can write all the file name in a tab-delimited format like shown below:

Leaf_T1_F_R10_S1_unmapped.R1.fq Leaf_T1_F_R10_S1_unmapped.R2.fq 
Leaf_T1_F_R2_S5_unmapped.R1.fq  Leaf_T1_F_R2_S5_unmapped.R2.fq 
Leaf_T1_F_R3_S4_unmapped.R1.fq  Leaf_T1_F_R3_S4_unmapped.R2.fq

Many thanks

bash unix linux • 116 views
ADD COMMENTlink modified 4 months ago by ATpoint38k • written 4 months ago by Bioinfonext250
2
gravatar for ATpoint
4 months ago by
ATpoint38k
Germany
ATpoint38k wrote:
ls *_unmapped.R1.fq | awk -F ".R1.fq" '{print $1".R1.fq", $1".R2.fq"}'
ADD COMMENTlink written 4 months ago by ATpoint38k

thanks work perfectly!

ADD REPLYlink written 4 months ago by Bioinfonext250

Basic Unix. I encourage you to learn it, it is helpful for a career in bioinformatics.

ADD REPLYlink written 4 months ago by ATpoint38k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 719 users visited in the last hour