#!/usr/bin/ksh while read value1 value2 value3; do # do your html conversion here done < /path/to/input_file