dotfiles/.local/bin/csview

6 lines
173 B
Bash
Executable File

#!/bin/bash
# Simple console CSV viewer
file="${1:?}" || exit 1
sed -e 's/,,/, ,/g' "$file" | column -s, -t | less -#5 --LINE-NUMBERS --chop-long-lines --RAW-CONTROL-CHARS