Hello Chia
Using the ... range operator appears to do what you want, if I understand correctly;
open(FILE,"input.txt");
while (){
print if !(/^\.SUBCKT (\S\S)/ ... /^\.ends $1/);
}
This print lines that don't fall between lines that match the two patterns
My test file input.txt was like th
On Wed, Sep 19, 2001 at 09:30:14AM -0700, Chia Teng wrote:
> I have a huge file containing the following patterns to be deleted:
[snip]
> Is there a better way to do this in perl ?
A better way? You didn't describe a way to do it in Perl, and your vi
solution wouldn't work in Perl, for what shou