多文档同步监控-MultiTail
2012-11-26 14:16:16

本站赞助商链接,请多关照。 MultiTail是个用来实现同时监控多个文档、类似tail命令的功能的软件。它和tail的区别就是他会在控制台中打开多个窗口,这样使同时监控多个日志文档成为可能。


MultiTail follows files in style, it is tail on steroids.

MultiTail lets you view one or multiple files like the original tail program. The difference is that it creates multiple windows on your console (with ncurses). It can also monitor wildcards: if another file matching the wildcard has a more recent modification date, it will automatically switch to that file. That way you can, for example, monitor a complete directory of files. Merging of 2 or even more logfiles is possible. It can also use colors while displaying the logfiles (through regular expressions), for faster recognition of what is important and what not. It can also filter lines (again with regular expressions). It has interactive menus for editing given regular expressions and deleting and adding windows. One can also have windows with the output of shell scripts and other software. When viewing the output of external software, MultiTail can mimic the functionality of tools like 'watch' and such.

[基本应用]

使用MultiTail的命令是“multitail [-i] file”。MultiTail将会在终端中显示文档内容,在屏幕底部会显示被打开文档的文档名、大小和最新修改时间。用户能够使用“-d”参数确保该状态行保持不变,或使用“-D”来关闭该状态行。假如要指定多个文档,则命令如下:
#multitail [-i] file1 [-i] file2

各个窗口都具备状态条。初始启动MultiTail时,各个窗口是上下排列,能够使用“v”命令来修改排列模式。

最新版本:6.2
此版本调整了布局,使命令行帮助易读性更高;添加了新的 -qs/-Qs,跟 -q/-Q 一样,可以自动为选择模式找到的新文件打开新窗口;为接下来的日志文件添加了配色方案的功能。增加对 UTF-8 编码的支持。

项目主页:http://www.vanheusden.com/multitail/