how to execute command in console of program (i.e. various databases) through shell/bash script
I would like to have script that starts console (i.e. of database postgres or mongo) and to execute some commands that are known to work, one of solutions is file.sh –> db.EXPECTED_COLLECTION….