dotfiles/.local/bin/scripts/cj

4 lines
183 B
Bash
Executable File

#!/bin/sh
# [c]at the given files as prettified [j]son
cat "$@" | while read -r line; do echo -n "$line" | python -m json.tool 2>/dev/null; done | bat --language json --style numbers