Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[how-to] grep your logs by IP to find nicks a player uses
04-30-2009, 05:21 PM
Post: #1
[how-to] grep your logs by IP to find nicks a player uses
Save the following as "ip_search.sh" and chmod +x

Code:
#!/bin/bash
# Search IPs for user names
# Usage:
# ./ip_search.sh <server name> <ip>
#

grep "$2" $(ls ~/nexuiz/data/data/logs/${1}/*.log |tail -n1) |awk '{ print $7 }' |sort |uniq
Inspire your neighbor, they'll inspire you back.

[url=http://maps.nexuizninjaz.com]maps.nn[/url] | [url=http://pics.nexuizninjaz.com]pics.nn[/url] | [url=http://chat.nexuizninjaz.com]chat.nn[/url] | [url=http://toolz.nexuizninjaz.com/cvar]2.5 cvar browser[/url]
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


Contact Us | Nexuiz Ninjaz Home | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication