Hi,
I am having a file say list1 with a output like below
jun 12 18:23
may 20 18:23
Now i want to pass the above two values into for loop,I have written a script like this.
#!/bin/bash
a=`cat list1`
for i in $a
do
echo "HI $i"
done
expected output:
HI jun 12 18:23
HI may 20 18:23
But i am getting output like below,
HI jun
HI 12
HI 18:23
HI may
HI 20
HI 18:23