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 freelancer chào giá trung bình$21 cho công việc này
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, I have very good experience in shell script and I have done many projects ,its guaranteed to solve this in time please contact me I will help you , hope work together
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
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