Pages

Tuesday, March 9, 2021

Sed Command in MAC

Method to use Sed in Mac

sudo sed -i "/kube/d" /etc/hosts

give error sed: 1: "/etc/hosts": extra characters at the end of h command


Following Syntax Worked. 
sudo sed -i '' '/kube/d' /etc/hosts

No comments:

Post a Comment