Export from sqlite to csv using shell script

前端 未结 5 1582
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-27 09:54

I\'m making a shell script to export a sqlite query to a csv file, just like this:

 #!/bin/bash
./bin/sqlite3 ./sys/xserve_sqlite.db \".headers on\"
./bin/sq         


        
5条回答
  •  时光说笑
    2020-11-27 10:46

    I recently created a shell script that will be able to take the tables from a db file and convert them into csv files.

    https://github.com/darrentu/convert-db-to-csv

    Feel free to ask me any questions on my script :)

提交回复
热议问题