dotfiles/.local/bin/csview

6 lines
173 B
Plaintext
Raw Normal View History

2022-05-29 22:36:19 +02:00
#!/bin/bash
# Simple console CSV viewer
file="${1:?}" || exit 1
2022-05-29 22:44:06 +02:00
sed -e 's/,,/, ,/g' "$file" | column -s, -t | less -#5 --LINE-NUMBERS --chop-long-lines --RAW-CONTROL-CHARS