I have the following example:
cat test.txt
Showing the following:
juan maria juan maria juan maria maria juan maria juan maria juan roberto roberto roberto roberto roberto roberto
To separate 2 from 2 each chain I do it using a for
loop, but to summarize, if I use:
cat test.txt | sed 's/../& /g'
I get the following output:
juan m ar ia ma ri a juan ro be r rt o ro be rt o
How do I make sed
so that I do not care about the repeated ones?
Greetings