Find Jobs
Hire Freelancers

need unix and shell script expert

₹100-400 INR / hour

Fechado
Publicado há mais de 8 anos

₹100-400 INR / hour

There are 10 problems in this part of the assignment. Create a text file that contains a set of sed commands that perform the following actions. The files to be edited will be found in '/home/hopper/berezin/Data'. Your command file look something like: #!/bin/bash dir=/home/hopper/berezin/Data psef=/home/hopper/berezin/Data/psef passwd=/home/hopper/berezin/Data/passwd etcList=/home/hopper/berezin/Data/etcList etcSlist=/home/hopper/berezin/Data/etcSlist # problem 01 - change the first occurrence of a to b sed 's/a/b/' $passwd > sout.01 # problem 02 - change 2nd occurrence of x to y sed 's/x/y/2' $passwd > sout.02 ... etc where sout has the problem number appended to it for each problem. Each problem should include one or more comment lines explaining what you are doing. You can change the contents of the data variable if you wish to run the sed commands on your own data set. But set it back before handing in the assignment. You can test the results of your 1st 7 solutons by using my data set and using diff to compare the souts files generated by solutions which can be found in '/home/hopper/Data/Sed'. Create a function, similar to the one outlined in the grep assignment, that invokes diff and compares my answers to yours. function sdiffit () { 'diff sout.$1 /home/hopper/berezin/Data/Sed/sout.$1 } Unless stated otherwise, when a string is generically described as a word, treat a word as alpha, numeric, and underscore. If specific word given, treat as literal unless otherwise specified. If it says find the word dog, look for lower case "dog" unless the problem indicates otherwise. Keep in mind, the passwd file uses a : as a field delimiter. If you spot differences between your solutions and mine, and you think yours is rigt, check with me. Send me your solution, I'll check it. I may also check the data sets, my solution, and the interpretation of the problem. Write a complete sed statement that edits the specified file. Different problems use different data files. Use the appropriate variable to reference the appropriate file. You may use multiple -e options. But unless specified, do not use any other sed options. ________________________________________ sout.01 Substitute the user Id, root at the beginning of the line in the psef file with Master. ________________________________________ sout.02 In the passwd file, substitute the portion of the home directory field that that says /home/hopper with /system/tron. Do this without using the backslash. ________________________________________ sout.03 In the passwd file, locate users who are daemons. This is usually signifed by the user Id ending with a d, such as printd, sshd, etc. Once that line has been identified, append :daemon to the end of the line. So : sshd:x:114:65534::/var/run/sshd:/usr/sbin/nologin Will look like : sshd:x:114:65534::/var/run/sshd:/usr/sbin/nologin:daemon Remember : separate fields in the passord file, so using square brackets and the not, [^:], is useful. ________________________________________ sout.04 Copy the user Id, the 1st word/column of the line to the end of the line preceeded by a space, :, and space. Use psef So : z1763923 10584 10583 0 09:39 pts/24 00:00:00 -bash Will look like : z1763923 10584 10583 0 09:39 pts/24 00:00:00 -bash : z1763923 Check out \(\) and &. Parentheses are numbered from the left and they may be embedded. \(\(...\)....\) is legal.
ID do Projeto: 8840978

Sobre o projeto

12 propostas
Projeto remoto
Ativo há 8 anos

Quer ganhar algum dinheiro?

Benefícios de ofertar no Freelancer

Defina seu orçamento e seu prazo
Seja pago pelo seu trabalho
Descreva sua proposta
É grátis para se inscrever e fazer ofertas em trabalhos
12 freelancers estão ofertando em média ₹669 INR/hora for esse trabalho
Avatar do Usuário
Looking to discuss about the budget and also project as well .
₹4.736 INR em 3 dias
4,8 (90 avaliações)
7,0
7,0
Avatar do Usuário
Hi, I, based on my 5 years experience as a software engineer knowledgeable with unix and linux administration expert on commandline application, can handle this task pretty well. Let me know the best of your time so we can discuss and we can move forward to the next step. Thanks, Joseph C Ocero
₹399 INR em 24 dias
4,9 (17 avaliações)
4,7
4,7
Avatar do Usuário
A proposal has not yet been provided
₹111 INR em 3 dias
5,0 (6 avaliações)
3,2
3,2
Avatar do Usuário
A proposal has not yet been provided
₹388 INR em 3 dias
5,0 (2 avaliações)
2,6
2,6
Avatar do Usuário
November 5, 2015 16:00 IST Hello, Does the job require logging in to your server for viewing task list/data? Am not aware of hourly job policies. If on ly 10 problems: should be a short task
₹277 INR em 3 dias
5,0 (1 avaliação)
1,8
1,8
Avatar do Usuário
Hi there, we are group of professionals with extensive experience in variety of skills including linux and shell scripting. Though you have given pretty detailed description of what you want, we would like to work closely with you to understand your requirement fully and will deliver fully tested script exactly as per your expectation. We will provide you initial draft and you can test it at your end. If you find any issues or have any feedback we would work on that and will give you final delivery of script. We are just starting to work on freelance and are eager to work with you.. Hoping to hear back from you soon!!
₹388 INR em 30 dias
0,0 (0 avaliações)
0,0
0,0
Avatar do Usuário
Ainda não foi fornecida uma proposta
₹166 INR em 3 dias
0,0 (0 avaliações)
0,0
0,0
Avatar do Usuário
A proposal has not yet been provided
₹388 INR em 3 dias
0,0 (0 avaliações)
0,0
0,0
Avatar do Usuário
Have extensive Unix skills that matches this requirement. Have working experience on real time in Unix.
₹277 INR em 3 dias
0,0 (0 avaliações)
0,0
0,0
Avatar do Usuário
i can help you here.. i have done many similar task like this and i have a good programming background.
₹277 INR em 3 dias
0,0 (0 avaliações)
0,0
0,0

Sobre o cliente

Bandeira do(a) INDIA
Bangalore, India
4,8
231
Membro desde jan. 29, 2011

Verificação do Cliente

Obrigado! Te enviamos um link por e-mail para que você possa reivindicar seu crédito gratuito.
Algo deu errado ao enviar seu e-mail. Por favor, tente novamente.
Usuários Registrados Total de Trabalhos Publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Carregando pré-visualização
Permissão concedida para Geolocalização.
Sua sessão expirou e você foi desconectado. Por favor, faça login novamente.