boxes 命令不仅是一个文本过滤器,同时是一个很少人知道的有趣工具,它可以在输入的文本或者代码周围框上各种ASCII 艺术画。你可以用它快速创建邮件签名,或者在各种编程语言中留下评论块。这个命令可以在 vim 文本编辑器中使用,但是也可以在各种支持过滤器的文本编辑器中使用,同时也可以在命令行中单独使用。
Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: boxes 0 upgraded, 1 newly installed, 0to remove and6not upgraded. Need to get 0 B/59.8 kB of archives. After this operation, 205 kB of additional disk space will be used. Selecting previously deselected package boxes. (Reading database ...224284 files and directories currently installed.) Unpacking boxes (from .../boxes_1.0.1a-2.3_amd64.deb) ... Processing triggers for man-db... Setting up boxes (1.0.1a-2.3) ...
Loaded plugins: rhnplugin Setting up Install Process Resolving Dependencies There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them. --> Running transaction check ---> Package boxes.x86_64 0:1.1-8.el6 will be installed --> Finished Dependency Resolution Dependencies Resolved ========================================================================== Package Arch Version Repository Size ========================================================================== Installing: boxes x86_64 1.1-8.el6 epel 64 k Transaction Summary ========================================================================== Install 1 Package(s) Total download size: 64 k Installed size: 151 k Is this ok [y/N]: y Downloading Packages: boxes-1.1-8.el6.x86_64.rpm | 64 kB 00:00 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : boxes-1.1-8.el6.x86_64 1/1 Installed: boxes.x86_64 0:1.1-8.el6 Complete!
FreeBSD 用户可以按如下使用:
1 2
cd /usr/ports/misc/boxes/ && make install clean
或者,使用 pkg_add 命令来增加包:
1 2
# pkg_add -r boxes
在一些给定文本周围画出任何种类的包围框
输入下列命令:
1 2
echo "This is a test"| boxes
或者,指定要使用的图案的名字:
1 2
echo -e "\n\tVivek Gite\n\tvivek@nixcraft.com\n\twww.cyberciti.biz" | boxes -d dog