Closed dgoo2308 closed 2 years ago
add -e to echo to create the /etc/samba/smb.conf
$> echo "[Global]\n\tinclude = registry" > /etc/samba/smb.conf
creates
[Global]\n\tinclude = registry
while
$> echo -e "[Global]\n\tinclude = registry" > /etc/samba/smb.conf
produces the required output:
[Global] include = registry
Good catch. I use Zsh as my shell and it properly interprets escaped characters in double quotes without -e, never thought to try in Bash.
add -e to echo to create the /etc/samba/smb.conf
creates
while
produces the required output: