Postgres Use Variable In Sed Command In Unix