My scenario is as follows.
- I have a reference file with the IP addresses and names
$ cat ref.list
10.11.xxx.xxx AA
10.12.xxx.xxx BB
10.13.xxx.xxx CC
10.14.xxx.xxx DD
-
A script runs and gets me one of the IP addresses and puts it in a separate file, for e.g
audit_output.log
-
I now have to check the user associated with the IP address that I get from
audit_output.log
and print the user.
Can sombody help me on how to go about with this ?
Thanks