Bash/Python/PHP/Perl/Everything cli linux script needed
$50-100 USD
Concluído
Publicado há mais de 8 anos
$50-100 USD
Pago na entrega
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.
hello, I can develop a Perl cli script for you to rearrange the file..........................................................................................
$100 USD em 2 dias
5,0 (69 avaliações)
6,9
6,9
6 freelancers estão ofertando em média $70 USD for esse trabalho
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 capable of scripting in various languages (including sh/bash, perl, php). I can write such script.
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 (in Reference or Comment).
Cheers
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. This would allow you to query the file from the command line in several different ways including groupings based on IP, date and user.