Hi All,
Now i am trying to install ClamAV on my centos 7 server.while configuring i have given the below command as per tutorial.
sed -i ‘/^Example/d’ /etc/clamd.d/clamd.conf
i got the following error
sed -i ‘/^Example/d’ /etc/clamd.d/clamd.conf
Anybody can help me to fix the issue.
Thanks in Advance
sed command error
Re: sed command error
You pasted the command twice. The two most likely issues: either there are unknown character in that command, or the file is not found/not what you expect it to be. For example:
should yield the desired result...
Code: Select all
# cat clamd.conf
Line one
Example: pioipl;ks
Line three
# sed -i "/^Example/d" clamd.conf
# cat clamd.conf
Line one
Line three
Root is evil: Do not use root (sudo) to run any of the commands specified in my posts unless explicitly indicated. Please, provide the necessary amount of context to understand your problem/question.
Re: sed command error
Thanks for your reply
Sorry for the mistake
The error is sed: -e expression #1, char 1: unknown command: `�
Thanks in Advance
Sorry for the mistake
The error is sed: -e expression #1, char 1: unknown command: `�
Thanks in Advance
Re: sed command error
Yes, use single quote (') or double ones (") to enclose sed commands, nothing else.
Root is evil: Do not use root (sudo) to run any of the commands specified in my posts unless explicitly indicated. Please, provide the necessary amount of context to understand your problem/question.