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

Re: Multiple substitutions in large files

by dragonchild (Archbishop)
on May 09, 2005 at 13:46 UTC ( #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
Node Status?
node history
Node Type: note [id://455181]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2019-12-08 10:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?