Devam Ediyor

Script with Sed to delete a selective line in a file

Here is my script

ubuntu@chefnode7:~$ cat [url removed, login to view]

#!/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 [url removed, login to view] '/$3/d' /etc/hosts # this line does not work

sudo sed [url removed, login to view] '/$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 ?

Beceriler: Betik Yükleme, Kabuk Betiği

Daha fazlasını görün: shell script delete replace line file, delete line file perl linux script, windows find delete line file script, linux shell delete line file sed, delete line file shell script, script shell delete line file, linux script add line file dont exists, script delete line file, linux script replace line file, delete line file shell, shell script delete line file, find delete line file shell script, shell script delete add line file, line delete shell script, shell script add line file, shell script remove single line file

İşveren Hakkında:
( 49 değerlendirme ) Lyndhurst, United States

Proje NO: #13455246

Seçilen:

dkokmadis

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 Daha fazlası

1 gün içinde 20$ USD
(16 Değerlendirme)
4.0

3 freelancer bu iş için ortalamada 46$ teklif veriyor

cracken

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 r Daha fazlası

in 0 gün içinde49$ USD
(8 Değerlendirme)
3.2
i333

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, Daha fazlası

1 gün içinde 70$ USD
(1 Değerlendirme)
2.4