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

 

 

 

posted @ 2012-04-27 23:02  wangkangluo1  阅读(1192)  评论(0编辑  收藏  举报