Skip to content
Advertisement

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

Advertisement