bash string to file
# syntax (note: the -e switch is to allow for backslash escapes)
echo -e "<string-to-append>" >> <file-to-append-to>
# example
echo -e "Hello there, new line!" >> RandomWorld.txt
# -----------------------------------------------
# In order to see the effect of -e, append the following string:
"Hello there,\n new line!"
Also in Shell:
- remove git credentials terminal
- linux check disk space
- bash head command
- ERR_NO_CERTIFICATES: Encountered adb error: NoCertificates. ionic
- change dns resolver linux
- how to add font icon in gatsby
- start-process id powershell
- What debian version do i use
- background script linux
- checking for existing ssh keys
- install ansible in redhat
- git pull
- git match remote master
- extract a tar.xz file linux
- how to view hidden files in mac terminal
- how to install vue in laravel
- how to make your own linux distro
- powershell output text file
- join files linux
- git return from detached head
- bash delete folder
- git files changed between two commits
- git push existing code to new repository
- pull old version git