Commit 560066f5 authored by Kirill Smelkov's avatar Kirill Smelkov Committed by Kirill Smelkov

mdb-astextplain: Sort rows by first row

Так строки не изменяют своего положения после модификации - т.е. их
порядок является стабильным и соответственно удобно смотреть разницу.
Signed-off-by: default avatarKirill Smelkov <kirr@mns.spb.ru>
parent 9ade8c89
......@@ -12,6 +12,11 @@ while read ; do
tab="$REPLY"
mdb-schema -T "$tab" "$mdbfile" | grep -v '^--'
echo "----8<----"
mdb-export -Q -d '|' "$mdbfile" "$tab"
# header
mdb-export -Q -d '|' "$mdbfile" "$tab" | \
head -1
# content sorted by first column
mdb-export -Q -d '|' -H "$mdbfile" "$tab" | \
sort -t '|' -g
echo "----8<----"
done < $tabfile
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment