Insert new line help
So I have a file that contains
Code:
>NM_#########AUGCAUCGUAGCUAGUCGAUACUGGACUG>NM_########AUGAGUAUGUAUGAUGUAUGUAUGA Code:
>NM_######### OR If it's easier, I have something like this Code:
>NM_######### If someone could help me how to do this with a simple command, it would really help. Thank you! |
Have a look at this:
Code:
$ echo '>NM_12345AUGCAUCGUAGCUAGUCGAUACUGGACUG>NM_987654321AUGAGUAUGUAUGAUGUAUGUAUGA' | \ |
Or
Code:
$ sed -r 's/[AUGCT]+/\n&\n/g' file |
@colucix: Nice.
And if this has to do with DNA/RNA codons then yours might be preferable, I am assuming That the NM_ part is static..... |
All times are GMT -5. The time now is 05:50 PM. |