I want to set a password for the default Postgresql server user,
postgres. I did it by using:
sudo -u postgres psql # \password postgres
I want to do this step in many machines, so I would like to create a
bash script to do the same. How to accomplish this in bash?