1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 10:37:45 +00:00

Base: Use new global variables at /sys/kernel/ directory

This commit is contained in:
Liav A 2022-10-14 21:52:09 +03:00 committed by Andrew Kaster
parent 9d1ba0e6ad
commit 1c5e09f789
4 changed files with 5 additions and 5 deletions

View file

@ -28,12 +28,12 @@ If no *path* argument is provided stdin is used.
```sh
# Pretty-print stdin
$ cat /proc/all | json
$ cat /sys/kernel/processes | json
# Pretty-print a file
$ json json-data.json
# Pretty-print a file with two spaces per indent
$ json -i 2 json-data.json
# Query data from JSON
$ json -q 1 .config/CommonLocations.json
$ cat /proc/all | json -q processes
$ cat /sys/kernel/processes | json -q processes
```