in reply to Re: REGEX with input file
in thread REGEX with input file
I am doing the follwoing to change the value from OLD to NEW:export O_PREFIX=OLD
my code is working and I am reading from the correct file , however my output looks like thismy $newValue='NEW'; s/O_PREFIX=(\w+)/O_PREFIX=$newValue/ if /O_PREFIX=/;
I hope this make it clear , if not then sorry :(O_PREFIX=NEWOLD instead of O_PREFIX=NEW
|
|---|