I would like to find and replace text within many
.procmailrc files, and using
I would like to remove the following line (including the new line break at the beginning) from the
The full contents of the file I want changed from:
:0 * !^FROM_MAILER ! [email protected]
:0 ! [email protected]
The command I am running is:
grep -lir '\n* !^FROM_MAILER' .procmailrc | xargs sed -i 's/\n* !^FROM_MAILER//g'
But it is not replacing the
*. In leaves the line in with just the
* on it. If I escape the
* as follows, that also does not work:
grep -lir '\n\* !^FROM_MAILER' .procmailrc | xargs sed -i 's/\n\* !^FROM_MAILER//g'
So I trying to find out how to do the find and replace to remove the entire line with the
* in it.