Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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 studying the Monastery: (4)
As of 2014-12-20 08:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (95 votes), past polls