#!/bin/bash
# http://redsymbol.net/articles/unofficial-bash-strict-mode/

set -eu
set -o pipefail

if [ $# -ne 2 ]
then
	FILENAME=$1
fi

#set -x

while read THELINE
do
    echo $THELINE | tr A-Z a-z		# convert THELINE to lowercase, and write it to stdout
done    < $FILENAME

