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

Re^2: Edit huge file

by roboticus (Chancellor)
on Jun 19, 2013 at 02:46 UTC ( [id://1039712]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict;
    ...
    # Rewind back to the start of the second line and obliterate it
    seek $FH, $pos, 0;
    print $FH "*" x (length($t)-length($/));
    
  2. or download this
    $ head -5 tmp.txt
    You are on the edge of a breath-taking view. Far below you 
    ...
    come surging out, cascading back down into the depths. The 
    glowing rock fills the farthest reaches of the cavern with 
    a blood-red glare, giving every- thing an eerie, macabre
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (8)
As of 2024-03-29 15:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found