Ukończone

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

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.

Umiejętności: Linux, Perl, PHP, Python, UNIX

Zobacz więcej: python button, list get python, bash copy, linux script perl python, linux script php xml post, including python php script, html formmail php perl python, india programmer php perl bash, php script needed, php installation script needed, using xcode ruby python php perl development, project manager php perl pgsql linux

O pracodawcy:
( 6 ocen ) Boston, United States

Numer ID Projektu: #8687211

Przyznany użytkownikowi:

freelance4hire80

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

$100 USD w ciągu 2 dni
(51 ocen)
6.3

7 freelancerów złożyło ofertę na kwotę $72 do tego projektu

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 Więcej

$55 USD w ciągu 3 dni
(34 Oceny)
5.2
dcnoye

A proposal has not yet been provided

$83 USD w ciągu 3 dni
(8 Oceny)
3.7
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 Więcej

$77 USD w ciągu 2 dni
(2 Oceny)
2.9
nearffxx

A proposal has not yet been provided

$56 USD w ciągu 2 dni
(5 Oceny)
2.7
thanhtuan5787

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

$50 USD w ciągu 2 dni
(1 Ocena)
1.4
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. Więcej

$83 USD w ciągu 2 dni
(0 Oceny)
0.0