| From: | Rich Shepard <rshepard(at)appl-ecosys(dot)com> |
|---|---|
| To: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: Copy from text file |
| Date: | 2006-06-23 03:16:43 |
| Message-ID: | Pine.LNX.4.63.0606222014520.11255@salmo.appl-ecosys.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On Thu, 22 Jun 2006, Ron Johnson wrote:
>> Assuming you're on a Unix box, you could easily use awk or perl to parse
>> your csv and create one that contains only the columns you want.
>
> And probably pipe the results directly into the copy command, bypassing any
> intermediary steps.
Well, why not use the 'cut' command with 'ls' feeding it? Redirect output
to a new file.
Rich
--
Richard B. Shepard, Ph.D. | The Environmental Permitting
Applied Ecosystem Services, Inc.(TM) | Accelerator
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Kostas Maistrelis | 2006-06-23 04:44:34 | Re: sql question; checks if data already exists before |
| Previous Message | Ron Johnson | 2006-06-23 03:11:12 | Re: Copy from text file |