请考虑以下命令:
elinks -dump file.html它将打印文件,格式化为纯文本(没有HTML标记)。
file.html不断更新(一个新的数据被追加),我想通过这样的“尾部-f”来运行它:
tail -f file.html | elinks -dump但是它不起作用。有什么想法吗?
发布于 2013-04-24 18:59:41
tail -n +1 -f file.html | while read line; do elinks -dump $line; done;试试这个。
https://serverfault.com/questions/502348
复制相似问题