[svlug] edit a 1GB file

William R Ward bill at wards.net
Mon Mar 31 11:51:26 PST 2003


Karsten M. Self writes:
>William R Ward (bill at wards.net) wrote:
>> How?  To the best of my knowledge, the equivalent in sed would require
>> adding a redirect and a "mv" command.  That's not just sed, that's
>> sed, shell, and mv.  Perl lets you do it in one command.
>
>Perl merely hides these steps from you.  The write new and mv old => new
>are done behind your back.  _The Perl Cookbook_ and/or _Programming
>Perl_ describe this process.

Of course.  But since it is done for you, it's always done the same
way for you.  This reduces the likelihood of human error.

--Bill.

-- 
William R Ward            bill at wards.net          http://www.wards.net/~bill/
-----------------------------------------------------------------------------
"A foolish consistency is the hobgoblin of little minds, adored by
 little statesmen and philosophers and divines."        - Emerson



More information about the svlug mailing list