I\'m trying to write PostgreSQL script(s) but having a problem with shebang line
#! /usr/bin/psql [ psql_args_here ] -f select now();
This giv
There is a even better solution. The first line should be:
--() { :; }; exec psql -f "$0"
It works as a regular shebang #!
http://rosettacode.org/wiki/Multiline_shebang#PostgreSQL