Find Jobs
Hire Freelancers

Script with Sed to delete a selective line in a file

$10-30 USD

Completed
Posted about 7 years ago

$10-30 USD

Paid on delivery
Here is my script ubuntu@chefnode7:~$ cat [login to view URL] #!/bin/bash echo "###############################################################################" echo "Setting Entry in /etc/hosts v3 " echo "###############################################################################" echo "passed.....$1" echo "passed.....$2" echo "passed.....$3" echo "passed.....$4" echo "passed.....$5" echo "passed.....$6" myentry="$1 $3 $2" mychef="$4 $6 $5" echo "myentry....$myentry" sudo chmod 777 /etc/hosts sudo sed [login to view URL] '/$3/d' /etc/hosts # this line does not work sudo sed [login to view URL] '/$6/d' /etc/hosts # this line does not work sudo echo $myentry >> /etc/hosts sudo echo $mychef>> /etc/hosts sudo chmod 644 /etc/hosts sudo cat /etc/hosts # end of file echo "pass: ip fqdn node ip cheffqdn chefnode" ubuntu@chefnode7:~$ This is something that I need ASAP - only accept if you can do this right now and IM me? We can work together and have a webex? Please note I will pay promptly and leave 5 stars for the project to help me with SYNTAX asap please ?
Project ID: 13455246

About the project

3 proposals
Remote project
Active 7 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
A proposal has not yet been providedA proposal has not yet been providedA proposal has not yet been providedA proposal has not yet been providedA proposal has not yet been providedA proposal has not yet been providedA proposal has not yet been providedA proposal has not yet been providedA proposal has not yet been providedA proposal has not yet been providedA proposal has not yet been providedA proposal has not yet been providedA proposal has not yet been providedA proposal has not yet been provided
$20 USD in 1 day
5.0 (16 reviews)
4.0
4.0
3 freelancers are bidding on average $46 USD for this job
User Avatar
Hi Ejbest2000, I am competitive to this kind of task, can take good care of this project. In fact, I already done related to this job before. Let me know the best of your time so we can discuss further based on your requirements and we can move forward to the next step. Thanks, Joseph C Ocero
$49 USD in 0 day
4.4 (8 reviews)
3.2
3.2
User Avatar
Hi, I have a lot of experience working with Linux Shell as well as with Shell Scripting. However, I have not worked with SED before but getting my hands on to this... Based on my extensive experience with programming, I believe I should be able to help you. Shall we discuss further? :)
$70 USD in 1 day
5.0 (1 review)
2.4
2.4

About the client

Flag of UNITED STATES
Lyndhurst, United States
5.0
49
Payment method verified
Member since Sep 14, 2013

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.