pt-align

官方解释

NAME
pt-align - Align output from other tools to columns.

SYNOPSIS
Usage
pt-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 --help
pt-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 exit

Option types: s=string, i=integer, f=float, h/H/a/A=comma-separated list, d=DSN, z=size, m=time

Rules:

  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 
zhangsan			shanxi		23
lizi taiwan 32
wangwu      xianggang 33
[root@slave159 opt]# 
[root@slave159 opt]# 
[root@slave159 opt]# pt-align t.txt 
zhangsan shanxi    23
lizi     taiwan    32
wangwu   xianggang 33
[root@slave159 opt]#












评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值