如何在文件中添加“p”

如何在文件中添加“p”

我有test.csv文件,下面是内容

"A","b","c","d"

我想在& using命令"p"之间添加,你能帮忙吗?bcawk

答案1

 awk 'BEGIN{FS=OFS=","}{$2=$2",""\"p\"";print }' filename

"A","b","p","c","d"

相关内容