we gave the following config file ( config.txt )
more config.txt
export var1=345476746
but when I am appending new parameter as
echo "export var2=5645" >> config.txt
we get
more config.txt
export var1=345476746export var2=5645
how to avoid this?
so we get
more config.txt
export var1=345476746
export var2=5645
config.txthas no newline at the end of the file. Fix that or simply add one before addingvar2. – pLumo Mar 20 '19 at 08:47vim, files without\nin the last line is indicated in the status line by[noeol]. – Weijun Zhou Mar 20 '19 at 09:16