I have a file riddled with this kind of thing:
-POEM- >> The big brown fox >> jumps over the >> lazy dog. The end.
I want to get rid of "\n>>" and just turn this into a oneliner:
-POEM- The big brown fox jumps over the lazy dog. The end.
I'm trying the following, all of which refuse to work:
perl -pe 's/\r?\n>>//g' task.tex tr '\n\>\>' '' < task.tex sed -i ':a;N;$!ba;s/\n>>//g' task.tex
What am I doing wrong?