Thursday, 19 June 2025

bash '\r': command not found - .bashrc / .bash_profile

 https://stackoverflow.com/questions/11616835/r-command-not-found-bashrc-bash-profile


For those who don't have dos2unix installed (and don't want to install it):

Remove trailing \r character that causes this error:

sed -i 's/\r$//' filename

No comments:

Post a Comment