我有一个 :
分隔的数据文件,有 3 列,第一行包含标题列名称。我想以表格格式打印出来。我正在使用以下代码:
column test.txt -t -s ":"
我目前的输出是:
FILE_NAME FILE_SIZE STATUS
upload/iurygify1.zip 0 SUCCESS
upload/iurygify2.zip 0 SUCCESS
upload/iurygify3.zip 0 SUCCESS
upload/20170501-abcd-2020-15-20 13 SUCCESS
我想要的是:
+----------------------------------+-------------+---------+
| FILE_NAME | FILE_SIZE | STATUS |
+----------------------------------+-------------+---------+
| upload/iurygify1.zip | 0 | SUCCESS |
| upload/iurygify2.zip | 0 | SUCCESS |
| upload/iurygify3.zip | 0 | SUCCESS |
| upload/20170501-abcd-2020-15-20 | 13 | SUCCESS |
+----------------------------------------------------------+