Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: One to one file output idiom

by 1nickt (Canon)
on Jan 15, 2020 at 18:15 UTC ( [id://11111452]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ rm foo* bar*
    $ echo foo > foo
    $ echo bar > bar
    
  2. or download this
    $ perl -MPath::Tiny -wnE 'sub baz {uc} chomp; my $in = path($_); $in->
    +sibling("$_.new")->spew(baz($in->slurp));' foo bar
    
  3. or download this
    $ cat foo.new
    FOO
    $ cat bar.new
    BAR
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2024-04-23 10:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found