Monday, June 16, 2025

printing csv as html tables using basic shell tools like tail

this shell script makes an html table out of a simple 2 col csv


#!/bin/sh
echo ""
echo "  "
echo "  "
tail -n +2 "$1" | awk -F',' '{print "    "}'
echo "  "
echo "
itemquantity
" $1 "" $2 "
"

I don't want to install numbers on my Ipad. A-shell mini/pythonista can run csvkit (csvtools is another good one) instead to do alot of basic data

  • shortcuts - data fetching, logging, file management
  • a-shell mini - csvtools, awk, sed, (maybe even a little grep)
  • pythonista - data analysis/ visualizations

No comments:

Post a Comment