1

How to add newline before and after a special character?

view story
linux-howto

http://www.unix.com – So I have a file that contains Code: >NM_#########AUGCAUCGUAGCUAGUCGAUACUGGACUG>NM_########AUGAGUAUGUAUGAUGUAUGUAUGA where # is any digit 0-9 (the text is many repetitions of the pattern above, not just that, but all in one line), and I want it to show Code: >NM_######### AUGUAGUGCUAGCUGAUCGAUGCUAGUCGUAGC >NM_######## AGUGAGUCGUCGUGACUGACUGUGGCAUCGUA Basically I need to add a new line before every > and between a number and a letter. OR If it's easier, I have something like this Code: >NM_######### AUGCUGAC GACGUAGC ACGUGUAG >NM_######## AGUGCUGA ACGU (HowTos)