Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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?
[TCLion]: DateTime::Format:: Flexible seems to have a lot of dependents, taking a while to install

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (11)
As of 2017-03-23 15:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (289 votes). Check out past polls.