dotfiles/.local/bin/scripts/cj

3 lines
138 B
Plaintext
Raw Normal View History

2021-01-23 19:23:40 +00:00
#!/bin/sh
cat "$@" | while read -r line; do echo -n "$line" | python -m json.tool 2>/dev/null; done | bat --language json --style numbers