I want to insert a word (public) inside parenthesis with sed keep getting error “unterminated s” what is the error on my command ? thanks
sed -e 's/\:read \(\)/\:read\(public\)/'
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This works for me, you shouldn’t escape parenthesis.
sed -e 's/\:read ()/\:read\(public\)/'for in place edit use the
-ioption.sed -i -e 's/\:read ()/\:read\(public\)/' filename