Skip to main content

Thread: Simple shell script question, replace double quotes with ASCII character?


i trying load .csv file mysql using shell script. works fine long don't add; " enclosed '"' " part of script.

think double quotes throwing off syntax because if make enclosed '""' (using 2 double quotes) executes doesn't give me results wanting. have field has comma in , enclosed quotes want load in single field, "the, end" , not load "the", "end".

there way replace double quotes it's ascii equivalent?

code:
mysql -uroot -p123453 -e "load data infile 'data.csv' table jras_intranet.test fields terminated ',' enclosed '"' lines terminated '\n' (firstname, lastname) ";
thank you!

shawn

any suggestions? thanks!


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [ubuntu] Simple shell script question, replace double quotes with ASCII character?


Ubuntu

Comments

Popular posts from this blog

Error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode - Raspberry Pi Forums

class MPU6050 has no member named begin

missing filename after '-o'