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
9ade8c89
Commit
9ade8c89
authored
Dec 16, 2010
by
Kirill Smelkov
Committed by
Kirill Smelkov
May 26, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mdb-astextplain: Fix for "spaces in table name" case
Signed-off-by:
Kirill Smelkov
<
kirr@landau.phys.spbu.ru
>
parent
c041d673
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
bin/mdb-astextplain
bin/mdb-astextplain
+5
-4
No files found.
bin/mdb-astextplain
View file @
9ade8c89
...
...
@@ -8,9 +8,10 @@ tabfile=`mktemp -t mdb-astextplain.XXXXXX`
mdb-tables
-1
"
$mdbfile
"
|
grep
-v
"^~TMP"
|
sort
>
$tabfile
# for each table dump its schema and content
for
tab
in
`
cat
$tabfile
`
;
do
mdb-schema
-T
$tab
$mdbfile
|
grep
-v
'^--'
while
read
;
do
tab
=
"
$REPLY
"
mdb-schema
-T
"
$tab
"
"
$mdbfile
"
|
grep
-v
'^--'
echo
"----8<----"
mdb-export
-Q
-d
'|'
$mdbfile
$tab
mdb-export
-Q
-d
'|'
"
$mdbfile
"
"
$tab
"
echo
"----8<----"
done
done
<
$tabfile
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