column命令用于格式化列信息。

column命令的使用格式如下:

column [-tx] [-c columns] [-s sep] [file ...]

常用的选项

-c      Output is formatted for a display columns wide.

-s      Specify a set of characters to be used to delimit columns for the -t option.

-t      Determine the number of columns the input contains and create a table.  Columns are delimited with whitespace, by
       default, or with the characters supplied using the -s option.  Useful for pretty-printing displays.

-x      Fill columns before filling rows.

样例

$ mount

Linux column使用(格式化输出)

#mount|column -t


Linux column使用(格式化输出)



转载于:https://blog.51cto.com/fantefei/1401168

相关文章:

  • 2021-12-30
  • 2022-12-23
  • 2022-01-01
猜你喜欢
  • 2021-07-31
  • 2022-12-23
  • 2021-06-05
  • 2021-11-12
  • 2022-12-23
  • 2021-11-12
  • 2018-08-25
相关资源
相似解决方案