I have example string like Test \"checkin_resumestorevisit - Online_V2.mt\" Run
Test \"checkin_resumestorevisit - Online_V2.mt\" Run
and i want to extract the text between the two quotes in bash. I tried
If you want to extract content between the first " and the last ":
"
s='Test "checkin_resumestorevisit - Online_V2.mt" Run' s=${s#*'"'}; s=${s%'"'*} echo "$s"