From e94afbc12527cdba91c713f119c92d0c27543f84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rio=20Valney?= Date: Thu, 28 Mar 2019 09:12:42 -0300 Subject: [PATCH] Add info about multiple files As we have info about do not try lookups, give an alternative can help users and avoid misuse. --- index.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/index.html b/index.html index 3bde0bc..36a8eb9 100644 --- a/index.html +++ b/index.html @@ -557,7 +557,13 @@

FEATURE: In-place editing

$ json -I -f *.json    # if there is more than one match to the glob
 json: error: lookups cannot be specified with in-place editing (-I/--in-place), too easy to lose content
 
+ +

For multiple files, use exec:

+ +
$ find /path/to/directory -name "*.json" -type f -exec json -I -f {} \;
+

Check find man page for more usages.

+

OPTIONS