dotfiles/.local/bin/csview
2022-06-08 21:23:51 +02:00

8 lines
219 B
Bash
Executable file

#!/bin/bash
# csview
#
# A very simple and crude terminal CSV viewer - nothing more.
file="${1:?}" || exit 1
sed -e 's/,,/, ,/g' "$file" | column -s, -t | less -#5 --LINE-NUMBERS --chop-long-lines --RAW-CONTROL-CHARS