如何使用 Miller 命令行工具删除 csv 文件中的空白行?

How to delete blank rows in csv files using the Miller command line tool?

我有一个包含许多空白行的 csv 文件(在 Mac 上)。

我正在为其他进程使用 Miller 命令行工具,我想也使用该工具删除空白行。

到目前为止,我在文档中找不到任何内容,但它非常广泛,所以我可能在某处忽略了它。

动词是skip-trivial-records:

mlr --csv skip-trivial-records input.csv >output.csv