I have a file that is formatted like this:
> ABC
1
2
> DEF
3
4
I would like to use tr to replace each >
with 4 carriage returns, so it looks like:
ABC
1
2
DEF
3
4
I tried the following in the Terminal: cat input | tr ">" "\n\n\n\n" > output
However, this only adds one carriage return between the two blocks of data, like this:
ABC
1
2
DEF
3
4
How can I get it to recognize the multiple carriage returns? Thanks!