Closed Freed-Wu closed 1 month ago
Hi, i'm a bit reluctant to add this before jq adds it as i would like to do it in the same way. For jq there has been an attempt to do it that got reverted and there has been some quite lively discussion about it, see https://github.com/jqlang/jq/issues?q=inplace
As i understand it there are some issues and behaviours to think about:
-i
for interactive REPL 🤔 maybe use -I
or --in-place
?If i would do this i think a first implementation would be first file only (and JSON value not spanning multiple files) and only JSON in/out.
Any ideas how it could work?
reluctant to add this before jq adds it as i would like to do it in the same way
So we should wait https://github.com/jqlang/jq/issues/105 :smile:
Yeah i guess so, sadly it might take some time 😬 but who knows! but would it be ok in your use case if the json get reformatted? (i mentioned comments, but i confused it with reformatting jq code 😄 )
I want to use fq to replace perl, such as:
However, perl have
-i
How can fq support it?