I have a text file that reads like this:
hello
We're so
excited to
be learning computer
science today
HOORAY
hooraaaay
I am trying to extract:
We're so
excited to
be learning computer
science today
HOORAY
so everything is between “We” and “GOOD,” including two words.
I use the command:
sed -n "/^We're so/,/^ HOORAY/p" file.txt
But it does not work (it does not stop after HOORAY). How can i fix this? Is there any other way to get closer to the team?
source
share