N
Nigel
Hello
I am trying to use perl to find and replace in a large text file but I
cannot seem to get it to search over multiple lines.
# cat file.txt | perl -p - i -e
's/pattern(.*)endofpattern/replacement/g'
I have tried many combinations but whatever I try, I can only get it
to search line by line. I have read everywhere about using /m but i
dont understand where to use it.
Can someone please help me.
I am trying to use perl to find and replace in a large text file but I
cannot seem to get it to search over multiple lines.
# cat file.txt | perl -p - i -e
's/pattern(.*)endofpattern/replacement/g'
I have tried many combinations but whatever I try, I can only get it
to search line by line. I have read everywhere about using /m but i
dont understand where to use it.
Can someone please help me.