In: Computer Science
For Linux:
Write a command to append the top 20 lines of the file seq.fasta to a second file named combined.seq.
NOTE:- I HAVE ATTACHED THE PROGRAM IN A SEQUENCE OF
1.THE CODE WITH SNIPPET
2.SCREENSHOT OF THE CODE FOR INDENTATION
3.SCREENSHOTS OF THE OUTPUT
------ANSWER-------
CODE
awk 'NR == 1 , NR == 20' seq.fasta >> combined.seq
EXPLANATION
CODE SNIPPET
awk 'NR == 1 , NR == 20' seq.fasta >> combined.seq
SCREENSHOT OF THE CODE FOR INDENTATION
OUTPUT OF THE CODE
SEQ.FASTA CONTAINS
BEFORE EXECUTING combined.fasta
AFTER EXECUTING THE COMMAND combined.seq
Note: If you have any queries then let me know in the comments. If you find it helpful then a Like would be appreciated.