--- Frank Newland <[EMAIL PROTECTED]> wrote:
> I want to use perl to do what I can't do on large files with sed.
> 
> 1. I run the following Unix command: 
> $prompt> sed -f list_of_changes original > outputfile
> 
> 2. Extract of list_of_changes: 
> 
> s/KAREN/LAURA /g
> s/KARA/MONA/g
> s/MIKE/OMAR/g
> s/BOB/TOM/g
> .......
> 
> 3. The file list_of_changes  contains 6000+ lines and sed balks at
> such a large set of commands.
> How can I do this in perl? 

Test this, but try:

  perl -p list_of_changes original > outputfile

Did I miss anything, anyone?

(c.f. perldoc perlrun for an explanation of -p)

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to