shell program, how to open a file and match for a line
I have a file (status.pl) that has a key word in it. I want to math for "$initiateProcess" and return that line in my shell program. Also, how to figure out (or match) for the value after "=" to determine if it is 0 or 1.
$initiateProcess = 0; # if 1, then initiate process