Dear all,
Here is output of my command
-bash-3.1$ psql -l |cut -d "|" -f1 | grep -i repo
repository
repository_reports
$

I want to drop these database thru script one by one.
My requirement is to take the these o/p one by one and use it with dropdb command.
Pls. guide me.
Thanks
vinod

A while loop.

Edit: Or a for loop ;-)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.