Em Andamento

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 ?

Habilidades: Instalação de Script, Shell Script

Ver mais: 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

ID do Projeto: #13455246

Premiar a:

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 Mais

$20 USD em 1 dia
(16 Avaliações)
4.0

3 freelancers estão ofertando em média $46 para este trabalho

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 Mais

$49 USD in 0 dias
(8 Comentários)
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, Mais

$70 USD em 1 dia
(1 Comentário)
2.4