shithub: sm2

ref: cb5a3fb8adad1c7f32d4d7ea26f01fa7078829ea
dir: /bin/sm2ger/

View raw version
#!/bin/rc -e
p=$user/p/sm2/ger
cd $p
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