COLUMN


SUBMITTED BY: Guest

DATE: June 6, 2014, 9:07 a.m.

FORMAT: Text only

SIZE: 1.1 kB

HITS: 3405

  1. NAME
  2. column - columnate lists
  3. SYNOPSIS
  4. column [-tx ] [-c columns ] [-s sep ] [file ... ]
  5. DESCRIPTION
  6. The column utility formats its input into multiple columns. Rows are filled before columns. Input is taken from file operands, or, by default, from the standard input. Empty lines are ignored.
  7. The options are as follows:
  8. -c
  9. Output is formatted for a display columns wide.
  10. -s
  11. Specify a set of characters to be used to delimit columns for the -t option.
  12. -t
  13. 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.
  14. -x
  15. Fill columns before filling rows.
  16. Column exits 0 on success, >0 if an error occurred.
  17. ENVIRONMENT
  18. COLUMNS
  19. The environment variable COLUMNS is used to determine the size of the screen if no other information is available.
  20. EXAMPLES
  21. (printf "PERM LINKS OWNER GROUP SIZE MONTH DAY HH:MM/YEAR NAME\n" \
  22. ; ls -l | sed 1d) | column -t

comments powered by Disqus