Hi guys,
I'm having problems trying to loop on .csv files, and this problem is new for me, checked elsewhere with no success.
I've a oneline script as simple as it could be:
Code:
for i in $(cat filename.csv); do echo "$i a"; sleep 1; done
filename.csv 2 first lines are:
email
_titi@email.com
The result, rather than the expected:
Code:
email a
_titi@email.com a
is:
Code:
aail
aiti@email.com
Looks like it's replacing rather than adding, and I'm very confused about...
Any clues?
Thanks!
Eudald