sed as grep + ignore # and match
- by yael
I have the following file example
more somefile
param=a b c d e f g z x w
# param=a b c d e f g z x w
I need to create with sed the following (should be one line if possible):
Ignore # char in the beginning of line
Match first the param string
Second match the "a b c d e f g z x w" (like grep -w) and give exit status if…