{"action":"created","issue":{"url":"https://api.github.com/repos/stedolan/jq/issues/105","labels_url":"https://api.github.com/repos/stedolan/jq/issues/105/labels{/name}","comments_url":"https://api.github.com/repos/stedolan/jq/issues/105/comments","events_url":"https://api.github.com/repos/stedolan/jq/issues/105/events","html_url":"https://github.com/stedolan/jq/issues/105","id":13463021,"number":105,"title":"Edit files in place","user":{"login":"svnpenn","id":926619,"avatar_url":"https://avatars.githubusercontent.com/u/926619?v=3","gravatar_id":"","url":"https://api.github.com/users/svnpenn","html_url":"https://github.com/svnpenn","followers_url":"https://api.github.com/users/svnpenn/followers","following_url":"https://api.github.com/users/svnpenn/following{/other_user}","gists_url":"https://api.github.com/users/svnpenn/gists{/gist_id}","starred_url":"https://api.github.com/users/svnpenn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svnpenn/subscriptions","organizations_url":"https://api.github.com/users/svnpenn/orgs","repos_url":"https://api.github.com/users/svnpenn/repos","events_url":"https://api.github.com/users/svnpenn/events{/privacy}","received_events_url":"https://api.github.com/users/svnpenn/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/stedolan/jq/labels/feature%20request","name":"feature request","color":"207de5"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/stedolan/jq/milestones/3","html_url":"https://github.com/stedolan/jq/milestones/1.5%20release","labels_url":"https://api.github.com/repos/stedolan/jq/milestones/3/labels","id":682789,"number":3,"title":"1.5 release","description":"jq 1.5 should get all the features that won't be going into 1.4:\r\n\r\n - loadable modules\r\n - better jq library support\r\n - regexp/glob support\r\n - I/O primitives\r\n - generator primitives: `while`,\r\n - generator utils: `foreach`, `limit`\r\n - `try EXP catch EXP` (exceptions)\r\n - bignum support\r\n - anything else?","creator":{"login":"nicowilliams","id":604851,"avatar_url":"https://avatars.githubusercontent.com/u/604851?v=3","gravatar_id":"","url":"https://api.github.com/users/nicowilliams","html_url":"https://github.com/nicowilliams","followers_url":"https://api.github.com/users/nicowilliams/followers","following_url":"https://api.github.com/users/nicowilliams/following{/other_user}","gists_url":"https://api.github.com/users/nicowilliams/gists{/gist_id}","starred_url":"https://api.github.com/users/nicowilliams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicowilliams/subscriptions","organizations_url":"https://api.github.com/users/nicowilliams/orgs","repos_url":"https://api.github.com/users/nicowilliams/repos","events_url":"https://api.github.com/users/nicowilliams/events{/privacy}","received_events_url":"https://api.github.com/users/nicowilliams/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":128,"state":"closed","created_at":"2014-06-05T23:19:44Z","updated_at":"2015-09-11T16:43:59Z","due_on":null,"closed_at":"2015-08-16T06:59:34Z"},"comments":17,"created_at":"2013-04-22T04:46:25Z","updated_at":"2015-10-23T18:26:27Z","closed_at":"2014-07-20T05:12:14Z","body":"With `sed` for example you can edit files in place\r\n\r\n~~~\r\n  -i[SUFFIX], --in-place[=SUFFIX]\r\n\r\n         edit files in place (makes backup if extension supplied)\r\n~~~\r\n\r\nHowever I see no option for this with `jq`, currently I must do this\r\n\r\n~~~ bash\r\njq '.foo' bar.json > baz.json\r\nmv baz.json bar.json\r\n~~~"},"comment":{"url":"https://api.github.com/repos/stedolan/jq/issues/comments/150655177","html_url":"https://github.com/stedolan/jq/issues/105#issuecomment-150655177","issue_url":"https://api.github.com/repos/stedolan/jq/issues/105","id":150655177,"user":{"login":"svnpenn","id":926619,"avatar_url":"https://avatars.githubusercontent.com/u/926619?v=3","gravatar_id":"","url":"https://api.github.com/users/svnpenn","html_url":"https://github.com/svnpenn","followers_url":"https://api.github.com/users/svnpenn/followers","following_url":"https://api.github.com/users/svnpenn/following{/other_user}","gists_url":"https://api.github.com/users/svnpenn/gists{/gist_id}","starred_url":"https://api.github.com/users/svnpenn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svnpenn/subscriptions","organizations_url":"https://api.github.com/users/svnpenn/orgs","repos_url":"https://api.github.com/users/svnpenn/repos","events_url":"https://api.github.com/users/svnpenn/events{/privacy}","received_events_url":"https://api.github.com/users/svnpenn/received_events","type":"User","site_admin":false},"created_at":"2015-10-23T18:26:27Z","updated_at":"2015-10-23T18:26:27Z","body":"> the awk that comes with OS X 10.9.5 does not support a \"-i\" option at all. \r\n\r\n@pkoppstein who cares?\r\n\r\nThe point of this thread is not if the awk on @pkoppstein system can do in\r\nplace.\r\n\r\nThe point of this thread is if JQ can do in place.\r\n\r\nMy argument is that it can and should, seeing how by your own admission it is\r\nsimilar to awk, and both sed and certain versions of awk can already do it."}}