不过,您可以对第一个命令使用输入重定向,然后在剩余的管道下中导出该命令的输出,这是更加常见的解决方案。
However, you can use input redirection for the first command and then pipe that command's output through the rest of the pipeline for the more usual solution.
由于需要以不同方式重新格式化每个文本块以生成正确的HTML输出,状态机似乎就是自然的解决方案。
Since you do need to reformat each text block type differently to produce the correct HTML output, a state machine seems like a natural solution.
但是,对于较大的数据源,报告输出可能需要更长的等待时间,因此不是最优解决方案。
For larger data sources however, this may present longer wait times for report output and may not be an optimal solution.
应用推荐