Chance Ervin wrote: > > I have the following config file: > > FILENAME=somefile01 > LINES_READ=0 > FILTER=0 > FILTER_CONTENT=NA > [EMAIL PROTECTED] > > FILENAME=somefile02 > LINES_READ=0 > FILTER=0 > FILTER_CONTENT=NA > [EMAIL PROTECTED] > > I need to be able to change the value of the first LINES_READ without > changing the value of the second and any subsequent entries in the config > file. It appears that a simple search and replace will not due as it will > change all values on the LINES_READ entries. Can anyone shed some light on > how this can be done?
perl -i~ -lpe'?^LINES_READ=?&&s/\d+/15/' config-file John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>
