-1

我想通过在 shell 脚本中组合三个或更多 xls 来形成一个 xls,比如在下面的示例中我有 A.csv、B.csv 和 C.csv,我希望所有三个都在单个 xls 中。

File name:,A.csv,,,,,,
Load summary:,,,,,,,
,"(A)
Records received in CIF file","(B)
Records loaded in CIF table (temp_card)","(C)
Cramer count (Card)","(A - B)
Records failed to load into CIF","(B - C)
Records failed to load into Cramer",Cramer Load Success %,Overall Load Success %
,14606,14606,14606,0,0,100,100



File name:,B.csv,,,,,,
Load summary:,,,,,,,
,"(A)
Records received in CIF file","(B)
Records loaded in CIF table (temp_card)","(C)
Cramer count (Card)","(A - B)
Records failed to load into CIF","(B - C)
Records failed to load into Cramer",Cramer Load Success %,Overall Load Success %
,14606,14606,14606,0,0,100,100


File name:,C.csv,,,,,,
Load summary:,,,,,,,
,"(A)
Records received in CIF file","(B)
Records loaded in CIF table (temp_card)","(C)
Cramer count (Card)","(A - B)
Records failed to load into CIF","(B - C)
Records failed to load into Cramer",Cramer Load Success %,Overall Load Success %
,14606,14606,14606,0,0,100,100

我怎么能这样。。

4

1 回答 1

0

简单的事情怎么样:

#!/bin/bash
cat A.csv B.csv c.csv > ABC.xls

应该这样做。如果您期待其他内容,请在 QS 中提及。

于 2013-04-08T11:34:09.963 回答