Consider this is the condition I need to check select count(*) from nm.table1 where column1 =true; Now it should come out of the db (PostgreSQL) and use IF THEN ELSE LOOP in the UnixSomething likeif [ $count > 1]then  echo  Successfulelse  exitfi
How to write a Shell Script using the condition from a database
shell script;postgresql