Create a script to compare log files line by line
Budget: €250 – €750 EUR
The raw data contains 43 log files. These 43 log files are to be imported. Also possible as text file.
1. all lines which contain the same text excerpt (the text excerpt is fixed by me) should be generated in the first output. For example all lines containing "crowdwork" should be summarized.
2. if at least two lines in the first 15 characters of the first output are the same, a sorted output should be generated. The whole line is to be reproduced.
For example
Output 1
100.100.100.100 - - ....crowdwork....
200.200.200.200 - - ....crowdwork....
10.100.10.10 - - ....crowdwork....
20.200.20.20 - - ....crowdwork....
200.200.20.20 - - ....crowdwork....
200.200.20.20 - - ....crowdwork....
200.200.20.20 - - ....crowdwork....
200.20.200.20 - - ....crowdwork....
100.100.100.100 - - ....crowdwork....
200.200.200.200 - - ....crowdwork....
Output 2:
100.100.100.100 - - ....crowdwork....
100.100.100.100 - - ....crowdwork....
200.200.200.200 - - ....crowdwork....
200.200.200.200 - - ....crowdwork....
200.200.20.20 - - ....crowdwork....
200.200.20.20 - - ....crowdwork....
200.200.20.20 - - ....crowdwork....
Please create a script where I insert the sources of the raw data and provide the text excerpt. The output 1 and 2 should be generated from it.
1. all lines which contain the same text excerpt (the text excerpt is fixed by me) should be generated in the first output. For example all lines containing "crowdwork" should be summarized.
2. if at least two lines in the first 15 characters of the first output are the same, a sorted output should be generated. The whole line is to be reproduced.
For example
Output 1
100.100.100.100 - - ....crowdwork....
200.200.200.200 - - ....crowdwork....
10.100.10.10 - - ....crowdwork....
20.200.20.20 - - ....crowdwork....
200.200.20.20 - - ....crowdwork....
200.200.20.20 - - ....crowdwork....
200.200.20.20 - - ....crowdwork....
200.20.200.20 - - ....crowdwork....
100.100.100.100 - - ....crowdwork....
200.200.200.200 - - ....crowdwork....
Output 2:
100.100.100.100 - - ....crowdwork....
100.100.100.100 - - ....crowdwork....
200.200.200.200 - - ....crowdwork....
200.200.200.200 - - ....crowdwork....
200.200.20.20 - - ....crowdwork....
200.200.20.20 - - ....crowdwork....
200.200.20.20 - - ....crowdwork....
Please create a script where I insert the sources of the raw data and provide the text excerpt. The output 1 and 2 should be generated from it.