I would like to append the following to my ~/.bash_profile:
# ---------------
# PERSONNAL EDITS
# anaconda3
. /opt/anaconda3/etc/profile.d/conda.sh
To do so, I use the script:
#!/bin/bash
app_str=\
'\n
# ---------------\n
# PERSONNAL EDITS\n
\n
# anaconda3\n
. /opt/anaconda3/etc/profile.d/conda.sh'
echo -e $app_str >> ~/.bash_profile
However, the result is the following:
<lines above...>
# ---------------
# PERSONNAL EDITS
# anaconda3
. /opt/anaconda3/etc/profile.d/conda.sh
There is a spacing in front of each line appended to the file. How do I remove the spacing?