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

Re: Yet another one-liner

by fundflow (Chaplain)
on Jan 12, 2001 at 00:46 UTC ( [id://51200]=note: print w/replies, xml ) Need Help??


in reply to Yet another one-liner

Since it seems like you are using unix, here is a non-perlish solution:
(echo ""; cat foo1) > foo1.new
And for many files (in tcsh):
foreach f ( foo* ) (echo ""; cat $f) > $f.new end

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2024-04-20 13:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found