I'm stumped on a bug. Im extracting a checksum value at the end of a file and storing it in a variable, the problem is that it is also somehow storing the carriage return in the string as show below:
The variables below both contain the value of 11
line_count=11
line_count_f=11
in the script when I issue echo "abc"$line_count"def"
I get
abc11def
this is fine...howvere when I issue the command echo "efg"$line_count_f"hij"