escape character for 'psql -c ' command - Mailing list pgsql-general

From Gary Fu
Subject escape character for 'psql -c ' command
Date
Msg-id ibsf1m$30t4$1@news.hub.org
Whole thread Raw
Responses Re: escape character for 'psql -c ' command  (Derrick Rice <derrick.rice@gmail.com>)
List pgsql-general
Hi,

How do I escape both " and ' to be used in the 'psql -c ' command ?
For example, how to make the psql command {\copy "Table" from
'txt_file'} to be used in the psql with -c option (psql -c) ?
The "Table" has to be double quoted here.

Thanks,
Gary

pgsql-general by date:

Previous
From: Lee Hachadoorian
Date:
Subject: Re: The first dedicated PostgreSQL forum
Next
From: Derrick Rice
Date:
Subject: Re: escape character for 'psql -c ' command