i have this sed line below whcih is working fine.
echo "enter name"
echo "enter shell"
sed -n "/$name/s/^\(.*:\).*$/\1$shell/p" /etc/passwd
The problem is:
when i enter shell as /bin/bash , the sed command gives me "command garbled" error
but when i enter shell as bash, the sed command works fine..
anyone know why?
Teh problem is: