Git Product home page Git Product logo

mdb-export-all's Introduction

mdb-export-all

Export all of the tables from Microsoft Access database to CSV

Requirements

mdbtools. There are packages for linux (apt-get install mdbtools) and macos (brew install mdbtools)

Usage

bash mdb-export-all.sh full-path-to-ms-access-db.accdb

Development

Style guide: https://github.com/bahamas10/bash-style-guide

mdb-export-all's People

Contributors

pavlov99 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

mdb-export-all's Issues

Spaces in filename

Works great thanks. Just FYI - when I pass a file name with spaces it fails. Some quoting around fullfilename=$1 possibly?

I just renamed my file though...

Adding support for spaces in table names

Neat script, thanks for providing it!

In case you ever need to handle databases that have spaces in table names (I know, this is horrible...), the loop over table names will fail (because whitespace is the default bash delimiter).

Just change the output of mdb-tables to newline-separated by adding the -1 flag and change bash's default separator to newline with IFS=$'\n', then it will work even for tables with weird names. Here's the relevant code snippet:

IFS=$'\n'
for table in $(mdb-tables -1 "$fullfilename"); do

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.