Sorry I don't get it. Please just show the input file and how the output should look like. If you work each element with for from a list, every element will be echoed line by line, that's as it is. In the example you use sed, not awk
Don't beat me, but you could just "cat" the file and everything will be fine hehe
But I guess you will do something with every sentence... I would prefer this
cat infile |\
while read LINE; do
echo "This is my line:" ${LINE}
#now do something with it in here
done
If you are going to parse the contents of the line, better use awk or sed like Franklin52 did.
while read record
do
echo "$record" | sed 's/\[/\\[/g' | sed 's/\]/\\]/g' | sed 's/\//\\\//g'| read US
echo ""
echo "$US"
echo ""
done < /tmp/unique-strings.tmp