Basically I have below scenario e.g.
grep 'test: \K(\d+)' $file=> 15grep 'test1: \K(\d+)' $file=> 20
Is there any way to store result of both commands into a variable like with comma as separator,
Test="grep 'test: \K(\d+)' $file;grep 'test1: \K(\d+)' $file"
Answer=eval $Test
Expected output: 15,20?