dotfiles/.local/bin/scripts/cj

3 lines
138 B
Bash
Executable File

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