I have a following scenario to do in a text file.
I have a large text file which gets generated from my server and includes the following information.
a)Lots of garbage data in ASCII with some ip addresses of computers connected to the server.
b)IP address is not written in whole instead it is like this sfafaffs@192@sdsfa@168@dfs8989090sdffsff0.09sf@90@90dsaaQW@1@. That is ip is in enclosed in the @tags
My goal is to make a text file which will print the ip with corresponding counter variable showing occurrences of particular ip.
How to approach to solve this problem.please also guide me don't post solution since that will limit my abilites. for example if next time I am faced with other problem related with this what would I do?So please advise me what should be strategy to solve these types of problems?