Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: how to redirect output in different files

by jwkrahn (Monsignor)
on Jun 14, 2013 at 06:46 UTC ( #1038904=note: print w/ replies, xml ) Need Help??


in reply to how to redirect output in different files

for %f in (*.txt) do @yourscript.pl %f

Try it like this:

perl -i -pe's/\s+/\n/g' *.txt


Comment on Re: how to redirect output in different files
Select or Download Code
Replies are listed 'Best First'.
Re^2: how to redirect output in different files
by choroba (Canon) on Jun 14, 2013 at 07:18 UTC
    That would require changing $ARGV[0] to shift also.
    لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2015-07-08 02:28 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 (93 votes), past polls