#!/bin/bash # propercase.sh: Proper Case for i; do i=${i,,} echo -n "${i^} " done echo $ while read line; do ./propercase.sh $line; done < words.txt