mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-23 00:29:59 +02:00
add arp
This commit is contained in:
21
README.md
21
README.md
@ -61,6 +61,7 @@ jc PARSER [OPTIONS]
|
|||||||
`jc` accepts piped input from `STDIN` and outputs a JSON representation of the previous command's output to `STDOUT`. The JSON output can be compact or pretty formatted.
|
`jc` accepts piped input from `STDIN` and outputs a JSON representation of the previous command's output to `STDOUT`. The JSON output can be compact or pretty formatted.
|
||||||
|
|
||||||
### Parsers
|
### Parsers
|
||||||
|
- `--arp` enables the `arp` parser
|
||||||
- `--df` enables the `df` parser
|
- `--df` enables the `df` parser
|
||||||
- `--env` enables the `env` parser
|
- `--env` enables the `env` parser
|
||||||
- `--free` enables the `free` parser
|
- `--free` enables the `free` parser
|
||||||
@ -84,6 +85,26 @@ jc PARSER [OPTIONS]
|
|||||||
- `-p` specifies whether to pretty format the JSON output
|
- `-p` specifies whether to pretty format the JSON output
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
### arp
|
||||||
|
```
|
||||||
|
$ arp | jc --arp -p
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"address": "gateway",
|
||||||
|
"hwtype": "ether",
|
||||||
|
"hwaddress": "00:50:56:f7:4a:fc",
|
||||||
|
"flags_mask": "C",
|
||||||
|
"iface": "ens33"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"address": "192.168.71.254",
|
||||||
|
"hwtype": "ether",
|
||||||
|
"hwaddress": "00:50:56:fe:7a:b4",
|
||||||
|
"flags_mask": "C",
|
||||||
|
"iface": "ens33"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
```
|
||||||
### df
|
### df
|
||||||
```
|
```
|
||||||
$ df | jc --df -p
|
$ df | jc --df -p
|
||||||
|
Reference in New Issue
Block a user