Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Text merge concept in perl

by Laurent_R (Monsignor)
on Dec 19, 2013 at 19:02 UTC ( #1067860=note: print w/ replies, xml ) Need Help??


in reply to Text merge concept in perl

Or this one-liner (I am merging here all the a*.pl files in my current directory into out.txt):

$ perl -pe '' a*.pl > out.txt
Just a quick check on the number of lines and characters:
$ wc out.txt 186 583 4219 out.txt $ wc a*.pl 11 27 187 a.pl 35 125 719 add2.pl 11 47 305 analyse_fable.pl 25 95 502 any.pl 24 99 532 any2.pl 24 55 357 aoh.pl 56 139 1617 array_hash.pl 186 587 4219 total


Comment on Re: Text merge concept in perl
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1067860]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (9)
As of 2015-07-31 05:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (274 votes), past polls