我有一个包含多列的 .csv 文件,我想将文件中第一列的值更改为所有行的“正数”,除非它是“负数”
所以如果我有文件
product,0 0,no way
brand,0 0 0,detergent
product,0 0 1,sugar
negative,0 0 1, sight
我想成功
positive,0 0,no way
positive,0 0,detergent
positive,0 0 1,sugar
negative,0 0 1, sight
如何使用 awk 完成此任务?