This works fine...it searches onconfig and looks for
LTAPEDEV /dev/infmx/log_tape_dev
And replaces with
LTAPEDEV /dummy
perl -pi -e 's/LTAPEDEV \/dev\/infmx\/log_tape_dev/LTAPE \/dummy/g' onconfig
What can I do so that if there is extra spaces ( white space ) between LTAPEDEV and /dummy and make sure the search/replace still works?
LTAPEDEV /dev/infmx/log_tape_dev
And replaces with
LTAPEDEV /dummy
perl -pi -e 's/LTAPEDEV \/dev\/infmx\/log_tape_dev/LTAPE \/dummy/g' onconfig
What can I do so that if there is extra spaces ( white space ) between LTAPEDEV and /dummy and make sure the search/replace still works?