Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: [off-site] Bash + Perl oneliners basics

by merlyn (Sage)
on Mar 17, 2005 at 07:06 UTC ( #440282=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    cat /var/log/httpd/access_log | perl -l -a -n -e 'print $F[6]' | sort 
    +| uniq -c | sort -n | tail -10
    
  2. or download this
    @ARGV = qw(/var/log/httpd/access_log);
    my %count;
    ...
      print "$_\n";
      last if ++$n >= 10;
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://440282]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (12)
As of 2014-09-01 13:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (11 votes), past polls