Welcome to the Monastery | |
PerlMonks |
Re: Print text on the same line after matchby thanos1983 (Parson) |
on Dec 14, 2018 at 23:55 UTC ( [id://1227282]=note: print w/replies, xml ) | Need Help?? |
Hello periodicalcoder, Fellow Monks have already answered your question. Just for fun this also a possible solution using rindex, substr and rename. The script is written based on the assumptions of your statement. That there is a unique line ending with (~) and the numbers that you want to extract are 6. Other than that it should be really fast and efficient. Or at least I believe so :)
Hope this helps, BR.
Seeking for Perl wisdom...on the process of learning...not there...yet!
In Section
Seekers of Perl Wisdom
|
|