Bash/Python/PHP/Perl/Everything cli linux script needed

Completed Posted Oct 14, 2015 Paid on delivery
Completed Paid on delivery

I have a large (10MB) old file generated by a blog. Because some scripts were broken, the format is generated in a really weird format and I'm looking for someone who is capable to write a script I can run on linux cli to get the format I want in a new file. It doesn't matter if it's bash, python, perl, php as long as I don't have to install modules for such easy thing.

I attached a part of my log to the project. Please download, review it and carefully read the project's description before bidding ( I can't send more of it as it contains sensitive information like: user's emails, phone numbers,etc).

It is pretty annoying to have to copy an ip, search to see if a comment was left by a certain user, etc. I would like the script to arrange the file based on the IP addresses in this format:

Date

User:

Comment:

Reference:

IP

##########################

Date

User:

Comment:

Reference:

IP

##########################

.....

....

....

##########################

Date

User:

Comment:

IP

##########################

Timestamp is important and you can make the script automatically delete it, as long as the Date stays there.

VERY IMPORTANT NOTES:

1) Please notice that NOT all the "user: entries have a corresponding "Comment" or "Reference" added to them. Some users just logged in, clicked "I like this article" button and didn't comment.

2) The output file should list first the entries with User+Comment+Reference and then the rest.

3) Some of the entries might be duplicates, so if there are any IDENTICAL User/Comment/Refference entries the script should just ignore them.

Please do not bid if you don't speak English and/or if you believe this job requires more than a few hours to complete. Thank you all for understanding.

Update: The entry delimiter (---------) is always the same and there are no multi-line entries in Reference or Comment lines.

Linux Perl PHP Python UNIX

Project ID: #8687211

About the project

6 proposals Remote project Active Oct 14, 2015

Awarded to:

freelance4hire80

hello, I can develop a Perl cli script for you to rearrange the file..........................................................................................

$100 USD in 2 days
(69 Reviews)
6.9

6 freelancers are bidding on average $70 for this job

f1x3r

I am experienced IT professional (network/systems/database engineer). I have knowledge of linux systems and I'm open source expert (worked with most popular open source softwares, and some known only to few). I'm also More

$55 USD in 3 days
(46 Reviews)
5.8
nolk

Hi there, can prepare a script for you. On top of the information you already provided I just need to clear up if the "record" delimiter in input file is always same (---------) and if there can be multi-line entries More

$77 USD in 2 days
(15 Reviews)
4.7
nearffxx

A proposal has not yet been provided

$56 USD in 2 days
(7 Reviews)
2.8
thanhtuan5787

Đề xuất vẫn chưa được gửi

$50 USD in 2 days
(4 Reviews)
2.2
yoyodyneinc

I have over 20 years experience handling log files including writing custom scripts to manage the files. I would propose a simple program written in self contained python to place your log file in a searchable format. More

$83 USD in 2 days
(0 Reviews)
0.0