how to write all pair end file name in a tab delimited format
1
0
Entering edit mode
4.0 years ago
Bioinfonext ▴ 460

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

linux unix bash • 649 views
ADD COMMENT
2
Entering edit mode
4.0 years ago
ATpoint 82k
ls *_unmapped.R1.fq | awk -F ".R1.fq" '{print $1".R1.fq", $1".R2.fq"}'
ADD COMMENT
0
Entering edit mode

thanks work perfectly!

ADD REPLY
0
Entering edit mode

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

ADD REPLY

Login before adding your answer.

Traffic: 2976 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6