Find Jobs
Hire Freelancers

Simple UNIX Script fix - remove 1 line from file

$10-30 USD

Zrušeno
Zveřejněno přibližně před 7 roky

$10-30 USD

Zaplaceno při doručení
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
IČ projektu: 13335308

O projektu

25 nabídky
Vzdálený projekt
Aktivní před 7 roky

Chcete si vydělat nějaké peníze?

Výhody podávání nabídek na Freelancer

Stanovte si rozpočet a časový rámec
Získejte za svou práci zaplaceno
Načrtněte svůj návrh
Registrace a podávání nabídek je zdarma
25 freelanceři nabízejí v průměru $21 USD za tuto práci
Avatar uživatele
A proposal has not yet been provided
$25 USD v 1 dni
5,0 (17 recenze)
4,1
4,1
Avatar uživatele
ready to deliver
$15 USD v 2 dnech
4,9 (8 recenze)
3,7
3,7
Avatar uživatele
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.
$15 USD v 1 dni
5,0 (2 recenze)
3,2
3,2
Avatar uživatele
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
$30 USD v 1 dni
5,0 (3 recenze)
1,8
1,8
Avatar uživatele
You're missing < redirection, so correct command would be: sudo sed '/chefmaster/d' <./myhost1 >./myhost2 And it works. :-)
$10 USD v 1 dni
5,0 (1 recenze)
1,0
1,0
Avatar uživatele
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
$20 USD v 1 dni
0,0 (0 recenze)
0,0
0,0
Avatar uživatele
hi maybe i can help you!!! you need del string "chefmaster" ? .
$15 USD v 1 dni
0,0 (0 recenze)
0,6
0,6
Avatar uživatele
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,
$10 USD v 1 dni
0,0 (0 recenze)
0,0
0,0
Avatar uživatele
I can provide the answer in a minute after the bid is accepted. It's pretty clear what you want to do and very simple.
$10 USD v 0 dni
0,0 (0 recenze)
0,0
0,0
Avatar uživatele
A proposal has not yet been provided
$30 USD v 1 dni
0,0 (0 recenze)
0,0
0,0
Avatar uživatele
Hi , Why you didn't remove the line manually on the file with vi or nano ? Do you need absolutely to use sed ? Best regards,
$15 USD v 1 dni
0,0 (0 recenze)
0,0
0,0
Avatar uživatele
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
$15 USD v 1 dni
0,0 (0 recenze)
0,0
0,0
Avatar uživatele
Experienced devops engineer + sysadmin here. Could help you with this in no time :) Hoping to hear back from you soon!
$30 USD v 1 dni
0,0 (0 recenze)
0,0
0,0
Avatar uživatele
A proposal has not yet been provided
$10 USD v 1 dni
0,0 (0 recenze)
0,0
0,0
Avatar uživatele
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
$25 USD v 1 dni
0,0 (0 recenze)
0,0
0,0
Avatar uživatele
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
$15 USD v 1 dni
0,0 (0 recenze)
0,0
0,0
Avatar uživatele
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
$10 USD v 1 dni
0,0 (0 recenze)
0,0
0,0
Avatar uživatele
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.
$13 USD v 1 dni
0,0 (0 recenze)
0,0
0,0

O klientovi

Pochází z UNITED STATES
Lyndhurst, United States
5,0
49
Ověřená platební metoda
Členem od zář 14, 2013

Ověření klienta

Díky! Poslali jsme vám e-mailem odkaz pro získání kreditu zdarma.
Při odesílání e-mailu se něco pokazilo. Zkuste to prosím znovu.
Registrovaných uživatelů Zveřejněných projektů
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Načítání náhledu
Bylo uděleno povolení ke geolokaci.
Vaše doba přihlášení vypršela a byli jste odhlášeni. Přihlaste se znovu.