Your regex needs two changes:
However, may I suggest the following alternatives:s/^(if.*rctladm\.conf.*fi)/$1\n$here/sm;
"As you get older three things happen. The first is your memory goes, and I can't remember the other two... " - Sir Norman Wisdom
In reply to Re: add after $1
by NetWallah
in thread add after $1
by wcj75019
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |