【发布时间】:2018-01-28 21:41:30
【问题描述】:
我有一个由制表符分隔的doveadm 命令输出,如下所示:
Username Quota name Type Value Limit %
user2@example2.com User quota STORAGE 203032 1024000 19
some@example.com User quota MESSAGE 816 - 0
other@ex.com User quota STORAGE 116873 1024000 11
email@ex.com User quota MESSAGE 235 - 0
如何将每一行传输到这样的 SQL 查询?
INSERT INTO quota (username, quota, type, value, limit, percentage) VALUES ('user2@example2.com', 'User quota', 'STORAGE', 203032, 1024000, 19);
...
【问题讨论】:
标签: string bash command-line debian-based string-operations