policyserver="something.com Hello World
policyserver="something_new.com:44441
Test Message
how do i search for policyserver="something.com and put # (comment)
OUTPUT as follow:
#policyserver="something.com Hello World
policyserver="something_new.com:44441
Test Message---------- Post updated at 06:45 PM ---------- Previous update was at 06:02 PM ----------
it is working now
awk '/^policyserver="something.com/{$0="#"$0}1' file
Thanks to all