I am writing a program to disable users from a system, i want to replace /bin/bash to /bin/false.
Example
xxx:x:1:22:xx:/export/home/xx:**/bin/bash**
replace to
xxx:x:1:22:xx:/export/home/xx:**/bin/false**
I want do with using bash script.
I know one way to do this is using sed. But i am not good at regular expressions.
Can any one help?