A few commands I tried are What can be going on? Is it because I use Notepad? Answer In short, yes. Notepad only understands DOS line-endings and not Unix line-endings. Use Wordpad or any other more capable editor to see the newlines correctly. Alternatively, if you do want to create DOS/Windows line-ending files then use rn in the printf call
Tag: echo
How to stop ‘echo’ from caching
I run the following: I then make a change to the apache2.conf file and run the command again, expecting a different hash, however it is the same hash which leads me to believe that echo is caching the file in that shell memory. When I open new shell and take a hash of the now-modified file it shows new hash.
Bash: add string to the end of the file without line break
How can I add string to the end of the file without line break? for example if i’m using >> it will add to the end of the file with line break: I would like to add yourText2 right after yourText1 Answer If your sed implementation supports the -i option, you could use: With the second solution you’ll have a