Suppose I have the following variable
$string = 'cat somecommandhere'
Now the output of the above
cat command is
I want to extract the value between the quotes and store it in the same variable
$string, including the quotes. I want string to contain value below:
$string = "Thanks serverfault"
How can this be done with
grep but not
awk. I haven't learned