- OK here goes the whole scenario. I will separate it in Part 1 and part 2 just to indicate untill where I have been successful. Part 1 I have been able to do.
But the second part is way too difficult.
Part 1
[*]Read input/ search criteria from user and look for it in start.txt[*]The result is then sorted (as there were dulplicated data) and display the result in the format
INPUT XX1,XX2,XX3 (For Eg. the XX1 can represent any data depending on the first Input)
This is in turn stored in result.txt
Part 2
[*] Take the result stored in result.txt and extract the data between the commas[*] grep that extracted data on servers.txt[*] Store and/or display the greped result under the line INPUT XX1,XX2,XX3