-
|
Is there a way to edit the JSON with fx? It would be really cool. Right now to edit version in package.json I need to use sed: This is from Makefile in one of my projects: package.json: .$(VERSION)
$(SED) -i 's/"version": "[^"]\+"/"version": "$(VERSION)"/' package.json |
Beta Was this translation helpful? Give feedback.
Answered by
antonmedv
Apr 27, 2024
Replies: 2 comments 4 replies
-
|
https://fx.wtf/advanced-usage#modifying-input |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
jcubic
-
|
Or use the sponge utility from moreutils. A little more typing, but once you install&learn it you can do in-place editing with any pipeline. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://fx.wtf/advanced-usage#modifying-input