Skip to content
This repository has been archived by the owner on May 9, 2022. It is now read-only.

Commit

Permalink
nicer notes
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Chadburn committed Jun 27, 2012
1 parent 39ce8fb commit e73d19e
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,24 @@ rspec
Usage
-----

Grep your access log (or you could process the whole thing) :-

```
# grep your access log
grep iPhone logs/guardian-access_log.20120622.guweb01 > logs/guardian-access_log.20120622.guweb0.iphone

# process it
Process it :-

```
ruby filter.rb < logs/guardian-access_log.20120622.guweb0.iphone > iphones
```

Run a simple report :-

# run a simple report
```
cut -f 1,2,3,5,6,7 iphones | uniq | sort | cut -f 2,5,6 | sort | uniq -c
```

Generates a table:-
Which should generate a table :-

1 302 2.3 Android
1 302 4.1 RIM OS
Expand Down

0 comments on commit e73d19e

Please sign in to comment.