dotfiles/.local/bin/scripts/cj

4 lines
183 B
Plaintext
Raw Normal View History

2021-01-23 19:23:40 +00:00
#!/bin/sh
2021-07-29 14:02:20 +00:00
# [c]at the given files as prettified [j]son
2021-01-23 19:23:40 +00:00
cat "$@" | while read -r line; do echo -n "$line" | python -m json.tool 2>/dev/null; done | bat --language json --style numbers