I'm reading a single-cell csv file and printing the value as a string with some other strings attached to it. It does not work for certain combinations. Do you know why?
while IFS="," read ts
do
echo "timestamp is: $
tstamp=$ts
done < timestamp.csv
a="TS_"
c="234"
b=".log"
d="${a}${c}${b}"
Log_1="${a}$tstamp"
Log_2="${tstamp}${a}"
echo "$d"
echo "$Log_1"
echo "$Log_2"
actual result:
timestamp is: 0x5cff71d8
TS_234.log
TS_0x5cff71d8
TS_cff71d8
expected result:
timestamp is: 0x5cff71d8
TS_234.log
TS_0x5cff71d8
0x5cff71d8TS_