Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
1#!/bin/bash 2 3databases=$(psql --tuples-only --command " 4 SELECT 5 datname 6 FROM 7 pg_database 8 WHERE 9 datistemplate = false 10 AND datname like 'zed-test-%' 11") 12 13for database in $databases; do 14 echo $database 15 dropdb $database 16done