thao4 has asked for the wisdom of the Perl Monks concerning the following question:
Hi all, I am new in perl. I need do somthing in perl: exemple: - search a patern "CADRE 1.1 CPU" in one file.txt - incremente +30 lines from the line with the patern found - replace the new patern "Model Regle" by "Heath Rule A" in this new line (30 lines after the line with patern "CADRE 1.1 CPU" Could you help me, please, thank you very much exemple of the text
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Replace a patern_2 in 30 lines from the line with the patern_1 founded
by thanos1983 (Parson) on Feb 21, 2018 at 10:29 UTC | |
|
Re: Replace a patern_2 in 30 lines from the line with the patern_1 founded
by karlgoethebier (Abbot) on Feb 21, 2018 at 16:30 UTC |