//View Tip #88
Similar Tips
» Filter stderr for cron jobs
» Highlight Grepped Text
» Get real names of current users
» Grepping for processes
» Get your machines IP adress


Latest tips by RSS
Click here to subscribe
Follow Shell-Fu on Twitter
Click here to follow
Follow Shell-Fu on identi.ca
Click here to follow
use `grep -o` to select only the pattern matched rather than the whole line:

grep -o 'GET [^ ]\+ ' /var/log/httpd_access.log | sort | uniq -c | sort -n | head -n 100 > top100

View Comments »


Add your comment

Comments are currently disabled
No Comments

Home Latest Browse Top 25 Random Hall Of Fame Contact Submit