I am working with bash scripting and running into a weird issue where the trailing newline characters are being truncated.
The file contents are something like:
# Catting the file shows the trailing \n characters
If I read it into a variable
The variable doesn't have the \n in the end
Since I am working with config files, some of the applications/daemons fail to start if they fail to find trailing newline characters