Appending strings in bash without the line feed.
To append to a stream in bash without the trailing line feed use printf to format the output before appending it to the stream.
i=42
FILE=/tmp/atm
printf "%s" "${i}" > $FILE
To append to a stream in bash without the trailing line feed use printf to format the output before appending it to the stream.
i=42
FILE=/tmp/atm
printf "%s" "${i}" > $FILE