Explanation Point as Field Delimiter

Moderator: NorbertKrupa

Post Reply
User avatar
Julie
Master
Master
Posts: 221
Joined: Thu Apr 19, 2012 9:29 pm

Explanation Point as Field Delimiter

Post by Julie » Mon Jan 28, 2013 6:57 pm

Hi all,

I need to use an exclamtation point as a field delimiter. When I try to do this in the foolowing command I get an error:

Code: Select all

bash-3.2$ vsql -c "COPY rpt.schedule FROM '/usr/home/dbadmin/schedule.txt' NULL AS '' DELIMITER '!' EXCEPTIONS '/usr/home/dbadmin/schedule.log';"
bash: !: event not found
Any idea how I can get this to run?
Thanks,
Juliette

User avatar
JimKnicely
Site Admin
Site Admin
Posts: 1825
Joined: Sat Jan 21, 2012 4:58 am
Contact:

Re: Explanation Point as Field Delimiter

Post by JimKnicely » Mon Jan 28, 2013 8:13 pm

Try:

Code: Select all

vsql -c "COPY rpt.schedule FROM '/usr/home/dbadmin/schedule.txt' NULL AS '' DELIMITER E'\!' EXCEPTIONS '/usr/home/dbadmin/schedule.log';"
Jim Knicely

Image

Note: I work for Vertica. My views, opinions, and thoughts expressed here do not represent those of my employer.

Post Reply

Return to “Vertica Data Load”