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 ?
[login to view URL] localhost
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
[login to view URL] [login to view URL] chefnode
[login to view URL] [login to view URL] chefmaster
Hello! We are a group of electrical engineers and web developers. We will be happy to help you with a sed command that matches and deletes a line from a file. You may drop us a PM anytime and we will be happy to assist.
Hi there.
Basically you have (this is the text file):
hello
world
hello hello
And you want to remove the lines that contains hello, right?
$ cat a
hello
world
hello world
$ sed '/hello/d' a > b
$ cat b
world
$
The command you reported should work, if it doesn't please share the file with me :)
Remember that your output is going to ./myhost2
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.
Can you please indicate the version of your sed by doing:
sed --version
You can accomplish the same thing using another standard unix command. I can explain that if I am awarded this "project".
My bid is low since your question is a simple one also I am trying to build reputation.
Regards,
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
I am a DevOps engineer with a lot of scripting experience. this project should not be an issue and I would be happy to have the opportunity to help you out.
Please contact me if you would like to discuss details about my professional experience or scripting knowledge.
Thank you for considering my bid.
-Troy
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
Dear,
I have been working as a Test Engineer from past three years in a reputed organistaion and working for automation of telecom projects .
I hope that my expereince will help you to sort out the script as early as possible.
Kinldy contact me on skypeid nareshbusireddy1310 or on mobile 919533590594 for further discussion.