here is the file that I have; want to be able to remove ONE line from the file containing a string that matches, the following command is being used and is not working.
sudo sed '/chefmaster/d' ./myhost1 > ./myhost2
Any thoughts ?
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
[url removed, login to view] [url removed, login to view] chefnode
[url removed, login to view] [url removed, login to view] chefmaster
25 freelancers estão ofertando em média $21 para esse trabalho
17 years experience with System Administration and Computer Security. [login to view URL] profile - [login to view URL] Skype ID - pdjoyner Contact me to discuss this project. Thank you, Paul Joyner
Hi, The task you are asking help for is very basic in shell scripting and need not be offered more than 1$. I can do it for minimum amount. Regrads, Tarun dagar
hi, do you just want to remove all the lines containing 'chefmaster'? if not (e.g. only the first/nth occurrence), there's no simple sed one-liner and you are going to be looking at awk or handmade sh
Hi, I can do shell scripting and have good knowledge of editing files through shell script. Hire me If you need a quick solution which is 100% working. Regards, Sriram