图片来源:https://www.pixiv.net/artworks/89845503 有如下三个表格,他们各自对应一个CSV格式文件 Fruit Qty Price Apple 13 1.1 Banana 24 2.3 Pear 7 1.5 Fruit Qty Price Apple 27 5.5 Pear 40 3.04 Watermelon 5 0.99 Fruit Qty Price Banana 12 0.55 Pear 15 2.98 Peach 8 6 使用awk合并上述3个表格,对于相同水果合并数量并求均价 用法: 输出: 合并后输出为CSV格式的单行版本 输出:
Daily Archives: November 19, 2022
1 post