consider this string:
file
This is some text
<#
Love this or that
#>
He is running like a rabbit
In order to, for example, grep for newline strings, id use:
cat file | grep -Pzo '(?s)<#.*?#>'
Which will output:
<#
Love this or that
#>
But what if i want to REMOVE the match? how can I do it?
pcregrepavailable on your system?grep -P ...ispcregrep(afaik).sedandawkas well?