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?
thank you!code:mysql -uroot -p123453 -e "load data infile 'data.csv' table jras_intranet.test fields terminated ',' enclosed '"' lines terminated '\n' (firstname, lastname) ";
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
Post a Comment