my txt file is constructed like:
random text
random text
random text
start_here
important text
important text
important text
end_here
random text
random text
start_here
important text
important text
important text
end_here
...
start_here
...
end_here
...
i need to print everything between start_here and end_here (no matter if these lines are in or not) in a new file.
i tried with awk but the output file is empty.
awk '/start_here/,/end_here/' inputfile.txt > outputfile.txt
Where is my mistake?