Suljettu

Linux shell script or c programm that parses 1 file, finds duplicate lines and if there are duplicates takes some actions

I need a shell script or C programm that will parse a file and will look for duplicate entries.

What is that file :

This file is a configuration file. Other scripts run and write this file, then these multiple configurations are concatenated in one single file. However if there are 2 exactly same configurations in that file then the server crashes.

What must the script do :

1. Remove the duplicate line but under each duplicate line it must also erase the next 4 lines.

2. It must keep the duplicate line and the 4 lines below that it found to a separate log file.

3. It must then email this log file only if there where duplicate lines.

Taidot: C-ohjelmointi, Linux, tietojärjestelmäarkkitehtuuri

Näytä lisää: what is in c programming, what is c# programming, what is c programming, programming scripts, programming in linux, programming for linux, parse programming, linux shell programming, if then programming, C Programming Linux, linux parse duplicate lines, linux shell scripts, in linux shell script, shell script or, what if, shell scripts, shell script, programm, parse email, linux email, erase a, email linux, C programm, c or c, c or c programming

Tietoa työnantajasta:
( 0 arvostelua ) Marousi, Greece

Projektin tunnus: #1739751

28 freelancers are bidding on average $67 for this job

Alexod

this is easy

40 $ USD 1 päivässä
(14 arvostelua)
5.8
gangabass

I can do this for you. See PM for details.

50 $ USD 1 päivässä
(87 arvostelua)
5.6
eliezedeck

Hi, I will do that for you, and it will be delivered today. Please check your PMB.

40 $ USD 1 päivässä
(9 arvostelua)
5.6
dobreiiita

Hi, I am C expert and can surely handle this job perfectly. Thank You

100 $ USD 2 päivässä
(68 arvostelua)
5.5
samitXI

I m ready to start now. Thanks

80 $ USD 2 päivässä
(36 arvostelua)
5.4
steven6

Hello, we are a group of programmers based in Sheffield, UK offering 7 years experience in php, .net, c#, jquery, css, python and c++. I am proposing to carry out tasks required for this project and deliver it within 2 Lisää

50 $ USD 0 päivässä
(7 arvostelua)
4.9
ancientb

Hello,i can start immediately.

85 $ USD 3 päivässä
(29 arvostelua)
4.7
ivan381eu

Piece of cake. Let's start.

40 $ USD 0 päivässä
(8 arvostelua)
4.7
honeypotant

Hi, I am Linux expert and have 7 year's experience. Regards.

35 $ USD 1 päivässä
(9 arvostelua)
4.6
techguru91

An experienced Linux System administrator working for ISP/Web Hosting, with expertise on Linux Server configuration and management. Further, I have experienced with shell scripting to automate routine tasks and configu Lisää

30 $ USD 1 päivässä
(22 arvostelua)
4.6
JDKochan

Ready to start.

50 $ USD 2 päivässä
(2 arvostelua)
3.6
mz1

It is easy job for me.

30 $ USD 1 päivässä
(3 arvostelua)
3.6
n3vermind

Hi, I am fully capable of writing that script, contact me if you are interested.

50 $ USD 2 päivässä
(1 arvostelu)
3.3
arthurpalves

Good afternoon, I'm Unix SysAdmin, Shell, PERL Developer with 4+ years of experience. I can do it very quickly. See more details in your PMB.

30 $ USD 0 päivässä
(4 arvostelua)
3.2
vernonsullivan

I can make a shell script that will perform your needed actions. Cheers.

30 $ USD 2 päivässä
(5 arvostelua)
3.2
nharasym

I already have something that does this completed in python and has been tested and works just fine.

45 $ USD 0 päivässä
(3 arvostelua)
2.4
networls

I have 2 years of experience in linux administration.

30 $ USD 4 päivässä
(1 arvostelu)
2.4
amsak

Placing bid

45 $ USD 21 päivässä
(1 arvostelu)
2.0
jonez734

I would prefer to use Python for this script if that is acceptable. I'd also like to see a sample data file so I know what I'm getting myself into.

175 $ USD 5 päivässä
(1 arvostelu)
1.5
sumodirjo

Hi, I'm an experienced system administrator. Hold RHCE since 2009. Ready to help you writing the script

150 $ USD 2 päivässä
(2 arvostelua)
1.4