perl -ne 'print; print `cat fileA` if /SEARCHPATTERN/' fileB > fileC & +& mv fileC fileB [download]
In reply to Re: Modifying File in the Middle by JavaFan in thread Modifying File in the Middle by PyrexKidd