I have a config file to which I nee to add a couple of lines at the top of the file. When I try to do it from the command line, it removes the new line characters from my file and gives me an unformatted file.
So, my question is: Can I add some lines to the top of an already existing file and it should retain its formatting and new lines remain as new lines?
I am adding new lines to an existing file from another file.