dotfiles/.local/bin/csview

7 lines
174 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:21 +02:00
sed -e 's/,,/, ,/g' "$file" | column -s, -t | less -#5 --LINE-NUMBERS --chop-long-lines --RAW-CONTROL-CHARS