P
paul_0403
I have a file with the following contents(see below) and I want to get
the value associated with PROCESS_PID using grep or what ever is the
most effient way. Once I get that value (23491) into a variable
I am going to use it to send a kill command to a process.
Of course I need to test if the grep was successful or not since all
my files may not contain that name value pair.
cat file
PROCESS_START_DATE='20081021'
PROCESS_PID='23491'
Thanks
the value associated with PROCESS_PID using grep or what ever is the
most effient way. Once I get that value (23491) into a variable
I am going to use it to send a kill command to a process.
Of course I need to test if the grep was successful or not since all
my files may not contain that name value pair.
cat file
PROCESS_START_DATE='20081021'
PROCESS_PID='23491'
Thanks