I have file consisting of a single line of text. I am trying to obtain the strings between the "#" and "@" symbols and store them as a newline on "Sequence.txt". For
For example, I have the input line: #HelloMyName@#IsAdam@#NiceToMeetYou@ The
#HelloMyName@#IsAdam@#NiceToMeetYou@
The expected output should be: HelloMyName IsAdam NiceToMeetYou
HelloMyName
IsAdam
NiceToMeetYou
I have tried the command: following line of code: sed 's/.#(.)@.*/\1/' >> Sequence.txt
sed 's/.*#\(.*\)@.*/\1/' >> Sequence.txt
However, the output is exactly the input: #HelloMyName@#IsAdam@#NiceToMeetYou@
#HelloMyName@#IsAdam@#NiceToMeetYou@
 
                