String Substitution in PERL vs SED Removing Disk I/O Factor
May 28, 2007 at 5:59 pm
A lot of systems administrators will use SED for string substitution, when they should try using PERL. When doing string substitutions with SED the string substitutions write to a seperate file, then the file is copied over the target file. This second file that is created utilizes Disk I/O, another issue you can run into are file permissions if your umask doesn’t match the permissions of the target file. With PERL you do not have any of these issues since its effects are directly onto the target file with no usage of secondary files therefore not Disk I/O.
(Read more…)
Comments (2)
Category: Systems 101
