I need to create a script with a loop through a list of items. I want to insert a string in the script.
I tried:
for i in "
a
b
c";
do
echo "test "$i
done
But that only outputs one string:
test a b c
How would I get this?
testa
testb
testc
(a, b and c are just examples for some longer words, which I got from an OpenOffice Calc file)
abclist from? A file? Typing it directly? Standard input? – jw013 Nov 5 '12 at 21:41xclip? – jw013 Nov 5 '12 at 21:57