Hi, I have put together this one-liner that prints all the words in a file on different lines: sed -e 's/[^a-zA-Z]/\n/g' test_input | grep -v "^$"
If test_input contains "My bike is fast and clean", the one-liner's output will be:
My
bike
is
fast
and
clean
What I would need now is a different version that prints all the 2-word terms in the text, like this (still with the Bash):
My bike
bike is
is fast
fast and
and clean
Would you know how to do it?