Skip to content
Advertisement

How can I use merge command to merge 5 rows in this text file with 1 row in another text file?

Summary I have a 1.txt with following order like this:

JavaScript

And another 2.txt with the order like (the line number=”2/3″ is constant, just the exon line is changed)

JavaScript

How can I use the merge command or another command to merge 5 rows in 2.txt with 1 row in 1.txt to have the final result seem like:

JavaScript

Many thanks for your help!

Advertisement

Answer

Learn awk and get with the program, son:

JavaScript

Output:

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement