Heredoc
Use heredoc to pass the string as-is between two delimiters (e.g. EOF)
For example, to add a block of text into ~/.xprofile,
cat << "EOF" >> ~/.xprofile
# ~/.xprofile
export GTK_IM_MODULE=ibus
export QT_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
ibus-daemon -drx
EOFLast updated on