running sqlite3 script inside bash -


i trying run multiple commands bash file of sqlite3 on ubuntu 15.10. code pull passwords user's google chrome , email them. have sqlite3 part down. i'm trying make simple , easy use them possible. don't know sqlite3 , it's kicking tail. how produce bash file using sqlite3 code?

sqlite3 'login data' .mode csv .headers on .separator "," .output userspw.csv select * logins; .exit 

the answer simple enough. inside batch can echo large data << eof structure.

sqlite3 'login data' << eof .mode csv  .headers on  .separator ","  .output userpw.csv  select * logins;  .exit eof 

this created results needing.


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -