Simplify PostgreSQL Database Management: Automating Multiple Database Drop/Create Operations
- Make these scripts executable
chmod +x create-dbs.sh
chmod +x drop-dbs.sh
- Run these scripts as follows
./create-dbs.sh
./drop-dbs.sh
Reference: Follow this blog for further details :)!