Đã Đóng

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.

Kỹ năng: Lập trình C, Linux, Kiến trúc phần mềm

Xem thêm: 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

Về Bên Thuê:
( 0 nhận xét ) Marousi, Greece

Mã Dự Án: #1739751

28 freelancer đang chào giá trung bình $67 cho công việc này

Alexod

this is easy

$40 USD trong 1 ngày
(14 Đánh Giá)
5.8
gangabass

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

$50 USD trong 1 ngày
(87 Đánh Giá)
5.6
eliezedeck

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

$40 USD trong 1 ngày
(9 Đánh Giá)
5.6
dobreiiita

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

$100 USD trong 2 ngày
(68 Đánh Giá)
5.5
samitXI

I m ready to start now. Thanks

$80 USD trong 2 ngày
(36 Đánh Giá)
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 Thêm

$50 USD trong 0 ngày
(7 Đánh Giá)
4.9
ancientb

Hello,i can start immediately.

$85 USD trong 3 ngày
(29 Đánh Giá)
4.7
ivan381eu

Piece of cake. Let's start.

$40 USD trong 0 ngày
(8 Đánh Giá)
4.7
honeypotant

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

$35 USD trong 1 ngày
(9 Đánh Giá)
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 Thêm

$30 USD trong 1 ngày
(22 Đánh Giá)
4.6
JDKochan

Ready to start.

$50 USD trong 2 ngày
(2 Đánh Giá)
3.6
mz1

It is easy job for me.

$30 USD trong 1 ngày
(3 Đánh Giá)
3.6
n3vermind

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

$50 USD trong 2 ngày
(1 Đánh Giá)
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 trong 0 ngày
(4 Đánh Giá)
3.2
vernonsullivan

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

$30 USD trong 2 ngày
(5 Đánh Giá)
3.2
nharasym

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

$45 USD trong 0 ngày
(3 Đánh Giá)
2.4
networls

I have 2 years of experience in linux administration.

$30 USD trong 4 ngày
(1 Đánh Giá)
2.4
amsak

Placing bid

$45 USD trong 21 ngày
(1 Đánh Giá)
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 trong 5 ngày
(1 Đánh Giá)
1.5
sumodirjo

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

$150 USD trong 2 ngày
(2 Đánh Giá)
1.4