On my bash script, I try to extend my bashrc, with the following lines :
to_print="alias $nom_machine='ssh $nom_machine'" target_file="~/.bashrc" echo -e "$to_print" >> "$target_file"
When executed, I got an error :
~/.bashrc: No such file or directory
But the file exists, it is 236 lines :
$ cat ~/.bashrc | wc -l 236
What is wrong on my script ?
I am on linux ubuntu 14.05