小编MZA*_*web的帖子

使用 CSV 行作为命令参数

我有一个 CSV 文件,如:

Name,Age,Address
Daniel Dvorkin,28,Some Address St. 1234
(... N ...)
Foo Bar,90,Other Address Av. 3210
Run Code Online (Sandbox Code Playgroud)

我有一个带这个参数的命令:

./mycommand --name="Daniel Dvorkin" --age=28 --address="Some Address St. 1234"
Run Code Online (Sandbox Code Playgroud)

为 CSV 的每一行运行mycommand的最简单方法是什么?

shell pipe text-processing csv

9
推荐指数
2
解决办法
7349
查看次数

标签 统计

csv ×1

pipe ×1

shell ×1

text-processing ×1