The new code is as follows:
# at the top:

outputDirectoryList=$2
touch $outputDirectoryList

# if statement:
if [ “$lineEnding” == “/” ]; then
echo $outputDirectoryList
echo “$textline” >> $outputDirectoryList
fi

Return to article.