Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
misc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
misc
Commits
2ece0d3a
Commit
2ece0d3a
authored
Dec 11, 2010
by
Kirill Smelkov
Committed by
Kirill Smelkov
May 26, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mdb-astextplain: Набросок утилиты для дампа .mdb'шного файла
parent
219e7dd1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
bin/mdb-astextplain
bin/mdb-astextplain
+16
-0
dot/mailcap
dot/mailcap
+1
-0
No files found.
bin/mdb-astextplain
0 → 100755
View file @
2ece0d3a
#!/bin/sh -e
# dump an .mdb in astextplain style
mdbfile
=
"
$1
"
tabfile
=
`
mktemp
-t
mdb-astextplain.XXXXXX
`
# list tables without temporary ones
mdb-tables
-1
"
$mdbfile
"
|
grep
-v
"^~TMP"
>
$tabfile
# for each table dump its schema and content
for
tab
in
`
cat
$tabfile
`
;
do
mdb-schema
-T
$tab
$mdbfile
|
grep
-v
'^--'
echo
"----8<----"
mdb-export
-Q
-d
'|'
$mdbfile
$tab
echo
"----8<----"
done
dot/mailcap
0 → 100644
View file @
2ece0d3a
application/msaccess; mdb-astextplain '%s'; copiousoutput
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment