shithub: sm2

ref: 4f7e816c57635648b9dd1c37a8a9427f67d86148
dir: /bin/sm2ger/

View raw version
#!/bin/rc -e
shl <db | sed 20q >>db0
grep -v `"{awk '{print $5}' db0 | tr '
' '|' | sed 's/\|$//;s/\|/\| /g;s/^/ /'} db >db00
mv db00 db
's&m2' db0 >db1
cp db1 db0