R (Chandra) Chandrasekhar wrote:
Dear Folks,
Hello,
I want to comment out certain lines in a file that match a particular
pattern. The file contains lines with characters like: {, }, ==, and ".
'{' is only special in a regular expression if it is immediately
followed by a numerical digit,
Dear Folks,
I want to comment out certain lines in a file that match a particular pattern.
The file contains lines with characters like: {, }, ==, and ". Specifically, I
want to replace lines beginning with
ATTRS{idVendor}=="07b4", ATTRS{idProduct}=="0109",
with
# ATTRS{idVendor}=="07b4", A