Skip to content

Dasel’s equivalent to JQ’s [] #144

Answered by TomWright
sergeevabc asked this question in Q&A
Discussion options

You must be logged in to vote

You'll want to use the all indexes selector for this:

$ dasel --plain -p json ".[*].ua" -m -f test.txt
Mozilla/5.0 (Windows; U; Windows CE; Mobile; like Android; ko-kr) AppleWebKit/533.3 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.3 Dorothy
Mozilla/5.0 (Android 2.2; Windows; U; Windows NT 6.1; en-US) AppleWebKit/533.19.4 (KHTML, like Gecko) Version/5.0.3 Safari/533.19.4

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by TomWright
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #143 on June 02, 2021 18:32.