perl rep.pl <infile >outfile#!/usr/bin/perl while ( defined ( $_ = <> ) ) { print; if ( /^line before your replacement/ ) { <>; print "LocalCompilerPresent=0\n"; } }
In reply to Re: Search and replace next line
by borisz
in thread Search and replace next line
by perlnewbie2000
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |