Revision: 18478
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at September 30, 2009 15:33 by benjay
Initial Code
cat xyz.log | grep "2009-03" | ruby -ne 'puts $1 if $_ =~ /user:\s(\w+)/' | sort -u | wc -l
Initial URL
Initial Description
Sample log line: [INFO] 2009-03-06 20:47:35 | controller::bla | user: vincentvega | ip: 127.0.0.1
Initial Title
Count unique users from a log file for a given time period
Initial Tags
sort, Bash, ruby
Initial Language
Bash