我有一个 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的最简单方法是什么?