how to give sudo password in shell script code example Example: run bash script linux with sudo password echo <password> | sudo -S <command>