#!/usr/bin/perl -pi.orig if(should_change($_)){ $_ = change_line($_); } [download]
In reply to Re: editing a file by fs in thread editing a file by Anonymous Monk