Hi,
I getting space delimited list of titles based on this code:
TITLES=`awk -F'|' '{print $1}' titles.txt | cut -d'=' -f2 | sort
Then I use that list in a for loop to print out the results:
for T in $TITLES
do
echo "$T"
done
The problem is that when a title has more than one word and the words are separated by a space then my for loop prints them out as separate things.
I tried adding double qoutes using sed to each title but that just caused the loop to print each word in double quotes rather then the two word titles together.
How can I fix this?