This is my code is bash script:
for string in $LIST
do
echo "$string" >> file
grep -v "#" file1 >> file
done
"file1" contains only one value, and that value changes iteratively.
The result I get in "file" is:
a
1
b
2
c
3
However, I want this:
a 1
b 2
c 3
Thanks in advance.
"file1" contains only one value, and that value changes iteratively.. Is it a named pipe?