Combine psql command with shell script - Mailing list pgsql-general

From John Wang
Subject Combine psql command with shell script
Date
Msg-id 552211.97514.qm@web36401.mail.mud.yahoo.com
Whole thread Raw
Responses Re: Combine psql command with shell script  (John R Pierce <pierce@hogranch.com>)
Re: Combine psql command with shell script  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
Re: Combine psql command with shell script  (Alvaro Herrera <alvherre@commandprompt.com>)
List pgsql-general
How to combine psql commands, such as "\copy", with shell script? Is there any sample code? For example, I have 10
tablesand want to user the "\copy" command to import data from 10 different text files. I can execute the "\copy"
command10 times. But it is not convenient. 

Thanks.




pgsql-general by date:

Previous
From: Joseph S
Date:
Subject: ERROR: table row type and query-specified row type do not match
Next
From: John R Pierce
Date:
Subject: Re: Combine psql command with shell script