Hi all,
I have a problem I always though i knew the answer to.
I have a variable with spaces and I want to perform an operation on each.
VAR="THIS" "THAT" "THIS AND THAT" "THIS AND THIS"
for i in $VAR
do
echo "$i"
done
I thought that I should be able to use $i in speech marks for this "$1" but it doesn't work and I don't seem to be able to suss it out.
Any ideas?
thanks