?
Solved

Get value without quotes using curl and sed

Posted on 2013-11-08
1
Medium Priority
?
278 Views
Last Modified: 2013-11-08
This does what I want except I do not want the quotations at the beginning and end:
curl -sk 'https://zuhqtr5.couchappy.com/site/www/' | sed -e 's/[{}]/''/g' | awk -v RS=',"' -F: '/^_rev/ {print $2}'

Open in new window

How can I get the same results without the quotes?
0
Comment
Question by:hankknight
1 Comment
 
LVL 20

Accepted Solution

by:
simon3270 earned 2000 total points
ID: 39633482
If you want all quotes removed from the string, add:
    | tr -d "'"'"'
to the end of the command - that deletes all double and single quotes
(it's double single double single double single)
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Utilizing an array to gracefully append to a list of EmailAddresses
Fine Tune your automatic Updates for Ubuntu / Debian
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Suggested Courses
Course of the Month17 days, 13 hours left to enroll

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question