-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Print strings without quotes #250
Comments
|
Thanks, no idea why I've missed that in the manpage. By the way, is there any reason why |
Missing feature. |
Instead of this, someone should implement |
Why is referenced to Elasticsearch this one @wgrzelak ? |
I have used this topic as an example of simplifying an output of |
Thank you @stedolan |
I am using fastlane to do some dynamic changes to my iOS app's property list file. The sybtax goes like this: display_name: sh("jq -r .app_name ../billerConfig.json")
Now when I see my project, I see there is a huge white space and then next line inserted, at the end of the app name. I don't think this is the issue with jq but just asking here, if it could be ? |
@userException See if this helps: |
Using "chomp" worked for me: sh("jq -r '.appName' ../billerConfig.json").chomp |
@celesteking here's a fun fact: over 300 people subscribe to this entire issue board and just received that image in their work emails. Another fun fact: many people are working remotely and regularly sharing their screens. |
What's done is done. I really like jq, just wanted to share my delightment with the usage of this tool. And it's not about the tool itself, absolutely not, but about the thorough documentation and the community. I've never had a problem looking up the usage examples and finding the right answer on google (either leading here, to issues section, or on SO). Pressing the "like" button won't "subscribe" you to the issue, so it narrows down to just 9 ppl ;) |
I see 317 watchers of the repo, but regardless of the number, it's still not appropriate. I've removed the image. |
@socketpair |
If you have an array that you want to output as plain string you have to use: jq '.[]' -r or jq 'map(.textPayload) | .[]' -r |
When I print strings, they are always surrounded with quotes:
(This is with jq 18e828f ). I'd like to feed this output into a program that expects URLs to be newline-separated and verbatim. How can I get the output without quotes, i.e.
The text was updated successfully, but these errors were encountered: