Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^3: perl onliner on multiple files

by 7stud (Deacon)
on Feb 08, 2013 at 23:54 UTC ( #1017906=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    
    $ perl -nE "/: / and $c += (split/: /)[0]; if( eof(ARGV) ){ say qq[SUM
    +.$ARGV =$c]; $c=0 }" tmp_*
    syntax error at -e line 1, near "+="
    syntax error at -e line 1, near "; ="
    Execution of -e aborted due to compilation errors.
    
  2. or download this
    $ c=10
    $ echo c
    ...
    The total is: 10
    $ echo 'The total is: $c'
    The total is: $c
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1017906]
help
Chatterbox?
[cavac]: Not sure if it's only my connection, but pause.cpan.org seems rather slow to respond today.
[cavac]: Could some of you just log in for a second and check, for example, the tail daemon logfile?
[Eily]: congrats Discipulus :)

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (9)
As of 2017-02-22 08:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (325 votes). Check out past polls.