<?xml version="1.0" encoding="windows-1252"?>
<node id="1017896" title="Re^3: perl onliner on multiple files" created="2013-02-08 17:35:42" updated="2013-02-08 17:35:42">
<type id="11">
note</type>
<author id="171588">
BrowserUk</author>
<data>
<field name="doctext">
&lt;blockquote&gt;&lt;i&gt;&lt;/i&gt;&lt;/blockquote&gt;
&lt;p&gt;Not from Perl you don't. That must be coming from your shell.

&lt;p&gt;Try switching the quotes if you are on linux. Ie:&lt;code&gt;
perl -nE'/: / and $c+= (split/: /)[0]; if( eof(ARGV) ){ say qq[SUM.$ARV =$c]; $c=0 }' tmp_*
&lt;/code&gt;

&lt;p&gt;If you are a perl/*nix user, you ought to know that.

&lt;div class="pmsig"&gt;&lt;div class="pmsig-171588"&gt;
&lt;hr /&gt;
&lt;font size=1 &gt;
&lt;div&gt;With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'&lt;/div&gt;
&lt;div&gt;Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.&lt;/div&gt;
&lt;div&gt;"Science is about questioning the status quo. Questioning authority". &lt;/div&gt;
&lt;div&gt;In the absence of evidence, opinion is indistinguishable from prejudice.
&lt;/div&gt;
&lt;/font&gt;

&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
1017880</field>
<field name="parent_node">
1017889</field>
</data>
</node>
