Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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 avoiding work at the Monastery: (6)
As of 2014-07-31 07:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (245 votes), past polls