Extract content between the first " and the last " double quotes

s='Test "checkin_resumestorevisit \"- "Online_V2.mt" Run'; s=${s#*'"'}; s=${s%'"'*}; echo "$s"
Thanks to this user: https://stackoverflow.com/a/35636373/2394635
Sample Output
checkin_resumestorevisit \"- "Online_V2.mt

What Others Think

https://sweetdreamscattery.com/ https://sweetdreamscattery.com/index.php/available-kittens/ https://sweetdreamscattery.com/index.php/about-us/ https://sweetdreamscattery.com/index.php/testimonials/ https://sweetdreamscattery.com/index.php/health-guarantee/ https://sweetdreamscattery.com/index.php/health-guarantee/ https://sweetdreamscattery.com/index.php/shipping-and-delivery/ https://sweetdreamscattery.com/index.php/contact/ https://dreambritishshorthair.com/ https://dreambritishshorthair.com/kittens-for-sale-near-me/ https://dreambritishshorthair.com/about-us/ https://dreambritishshorthair.com/shipping-and-delivery/ https://dreambritishshorthair.com/health-and-guarantee/ https://dreambritishshorthair.com/testimonials/ https://dreambritishshorthair.com/contact/ https://allmightypedigreerotties.com/ https://allmightypedigreerotties.com/index.php/available-puppies/ https://allmightypedigreerotties.com/index.php/about-us/ https://allmightypedigreerotties.com/index.php/testimonials/ https://allmightypedigreerotties.com/index.php/contact/ https://royalgermanshepherdhome.com/ https://royalgermanshepherdhome.com/available-puppies/ https://royalgermanshepherdhome.com/about-us/ https://royalgermanshepherdhome.com/testimonials/ https://royalgermanshepherdhome.com/shipping-and-delivery/ https://royalgermanshepherdhome.com/contact/
mbepep · 6 days ago
I will really appreciate the writer’s choice for choosing this excellent article. Here is a deep description of the article matter which helped me more. cheapest smm panel.
smmpanels · 6 days ago
This is very educational content and written well for a change. It's nice to see that some people still understand how to write a quality post! Flower Arrangment
johnlead · 5 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: