Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

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

by merlyn (Sage)
on Mar 17, 2005 at 07:06 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://440282]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2024-04-19 20:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found