echo with new lines bash
echo -e "hello\nworld"# Using echo
echo -e "Line 1\nLine 2"
echo "Line 1 $HOME expanded
Line 2"
echo 'Line 1 $HOME not expanded
Line 2'
# Similar result, using cat
cat <<EOF
Line 1 $HOME expanded
Line 2
EOF
cat <<'EOF'
Line 1 $HOME not expanded
Line 2
EOF
echo -e "hello\nworld"
# Output
/*
* hello
* world
*/
Also in C++:
- firewall allow port ubuntu
- git diff between branches file
- how to configure bluetooth on ubuntu command line
- clone mongodb database to local machine
- how to download pip3 in kali linux
- ubuntu slack install
- git delete all local branches
- install linux
- how to run a .bin file in linux
- new terminal in linux
- afficher l'heure .bat
- libqt5x11extras5 install ubuntu
- inotifywait not working
- nginx certbot ubuntu
- bash how to create directories in all subdirectories
- split and get last
- script to kill a process in windows
- delete a folder then git push
- modifier un nom de branche git
- download teamviewer for ubuntu using terminal
- mac install brew
- bash if
- install guake ubuntu
- bash copy contents of file to clipboard