column 格式化列显示 命令介绍

# cat data.csv
kris, florida, 29
jenn, florida, 25
bob, texas,  35

 

#column -t data.csv   (column默认使用为空格)
kris, florida, 29
jenn, florida, 25
bob, texas, 35

 

指定分隔符

# cat data.csv
kris|florida|29
jenn|florida|25
bob|texas|35


# column -t -s "|" data.csv
kris florida 29
jenn florida 25
bob texas 35

 

 

 

原文地址:https://www.cnblogs.com/wangkangluo1/p/2474344.html