echo new line to file code example
Example 1: echo new line to file
echo $'username=user\npassword=pass' > ~/samba-credentials
Example 2: echo new line
echo -e "hello\nworld"
echo $'username=user\npassword=pass' > ~/samba-credentials
echo -e "hello\nworld"