pt-align

来源:互联网 发布:ios远程mac 编辑:程序博客网 时间:2024/05/19 20:56

官方解释

NAMEpt-align - Align output from other tools to columns.SYNOPSISUsagept-align [FILES]pt-align aligns output from other tools to columns. If no FILES are specified, STDIN is read.If a tool prints the following output,
一个简单的格式化展示工具

[root@slave159 opt]# pt-align --helppt-align aligns output from other tools to columns.  If no FILES are specified,STDIN is read.  For more details, please use the --help option, or try 'perldoc/usr/local/bin/pt-align' for complete documentation.Usage: pt-align [FILES]Options:  --help     Show help and exit  --version  Show version and exitOption types: s=string, i=integer, f=float, h/H/a/A=comma-separated list, d=DSN, z=size, m=timeRules:  This tool accepts additional command-line arguments. Refer to the SYNOPSIS and usage information for details.Options and values after processing arguments:  --help     TRUE  --version  FALSE

例如

[root@slave159 opt]# cat t.txt zhangsanshanxi23lizi taiwan 32wangwu      xianggang 33[root@slave159 opt]# [root@slave159 opt]# [root@slave159 opt]# pt-align t.txt zhangsan shanxi    23lizi     taiwan    32wangwu   xianggang 33[root@slave159 opt]#












0 0