Click to See Complete Forum and Search --> : Help format output ....


anton
04-15-2002, 11:18 AM
Hello,

here's a line from log file:

Sun Apr 14 13:33:54 2002 534 IP-ADDRESS 9153726 FILE-NAME b _ o r USER-NAME RDA 0 *


1.) I want to get an output with every USER-NAME and IP-ADDRESS , sorted by user name, so I can see what users access from what IP


2.) I want to output again with user-names and ip-addresses , sorted by username, but also only for corresponding paths :)


thx :)

anton
04-16-2002, 07:36 AM
anybody ? pls ? :(

mrBen
04-16-2002, 08:46 AM
You should be able to do this in a small shell script. I think you would first want to create an output file, and then use one of those funny text languages (sed, possibly combined with grep) to pull out the information you want, and then run the output file through sort.

That should solve 1. Not sure about 2. The best person to ask always seems to be TLD, although there should be a tonne of script-gurus out there. You may want to ask again in the Programming/Script Depot forum (although don't crosspost ;) )

HTH