I want to write a line mac .bash_profile file while executing a shell script.I have tried below way but it gives error as
sed -i 'export PATH='$PWD:'$PATH' $HOME/.bash_profile
error
sed: 1: "/Users/dhiraj/.bash_pro ...": extra characters at the end of d command
Kindly let me know how do i resolve it ?