Skip to content

How to replace a query param by name? #260

Closed Answered by bagder
andrewrothman asked this question in Q&A
Discussion options

You must be logged in to vote

Currently, you need to first remove the existing 'b' and then add the new one:

$ trurl 'https://example.com?a=123&b=321' --trim query=b --append query=b=foo
https://example.com/?a=123&b=foo

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@jacobmealey
Comment options

@bagder
Comment options

Answer selected by bagder
Comment options

You must be logged in to vote
3 replies
@andrewrothman
Comment options

@bagder
Comment options

@andrewrothman
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants