#!/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