#!/bin/bash
if [ $# -eq 0 ] || [ ! -r "$1" ] ; then
echo "Usage : $0 file" >&2
exit 1
fi
echo -e "\n
\n\n\n\n\n"
IFS=',' ; # Internal Field Separator
while read line ; do
echo ""
set -- $line
for ((i=1 ; i <= $# ; i++)) ; do
echo " ${!i} | "
done
echo "
"
done < $1
echo -e "
\n\n"
exit 0
# https://www.w3schools.com/html/html_tables.asp
# http://css.mammouthland.net/tableaux-bordures-fines-border-css.php