I am making a csv constructor but I have some problems.
I have files like this characteristics.tmp
1083108343
1083108360
1083108378
1083108386
I have to build to this format: Name, "1083108343 ,1083108360 , 1083108378,1083108386"
;
I tried this
cat characteristics.tmp| paste -s -d, -
I also tried tr '
' ','
But the output is like if there is only one element. I check the file with xxd and the character 0d0a
is as it should be in the end of every line? So why is not detecting the others?
,1083108386
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…