Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Multiple substitutions in large files

by dragonchild (Archbishop)
on May 09, 2005 at 13:46 UTC ( [id://455181]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -p
    
    ...
            s/\s+\|/\|/g;
            s/(\d{2}:\d{2}:\d{2})\.\d+/$1/g;
            s/(\d{5})-(?:\d{1,4}|\s+)/$1/;
    
  2. or download this
    my_scriptydoo.pl file1 > file2
    

Log In?
Username:
Password:

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

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

    No recent polls found