Hi, folks!
I'm trying to delete text between newlines using Perl in Windows command line, like this:
C:\> type file.txt | perl -pe "s/Text1.*\n.*\nText2//"
It's not working, but works if I try with just one line:
C:\> type file.txt | perl -pe "s/Text1.*\n//"
Is there some way to make it work? Thanks in advance!
Reginald0
I'm trying to delete text between newlines using Perl in Windows command line, like this:
C:\> type file.txt | perl -pe "s/Text1.*\n.*\nText2//"
It's not working, but works if I try with just one line:
C:\> type file.txt | perl -pe "s/Text1.*\n//"
Is there some way to make it work? Thanks in advance!
Reginald0