col - filter reverse line feeds from input


SUBMITTED BY: Guest

DATE: June 4, 2014, 6:46 a.m.

FORMAT: Text only

SIZE: 2.4 kB

HITS: 5171

  1. NAME
  2. col - filter reverse line feeds from input
  3. SYNOPSIS
  4. col [-bfpx ] [-l num ]
  5. DESCRIPTION
  6. Col filters out reverse (and half reverse) line feeds so the output is in the correct order with only forward and half forward line feeds, and replaces white-space characters with tabs where possible. This can be useful in processing the output of nroff(1) and tbl(1).
  7. Col reads from standard input and writes to standard output.
  8. The options are as follows:
  9. -b
  10. Do not output any backspaces, printing only the last character written to each column position.
  11. -f
  12. Forward half line feeds are permitted (``fine'' mode). Normally characters printed on a half line boundary are printed on the following line.
  13. -p
  14. Force unknown control sequences to be passed through unchanged. Normally, col will filter out any control sequences from the input other than those recognized and interpreted by itself, which are listed below.
  15. -x
  16. Output multiple spaces instead of tabs.
  17. -l num
  18. Buffer at least num lines in memory. By default, 128 lines are buffered.
  19. The control sequences for carriage motion that col understands and their decimal values are listed in the following table:
  20. ESC-7
  21. reverse line feed (escape then 7)
  22. ESC-8
  23. half reverse line feed (escape then 8)
  24. ESC-9
  25. half forward line feed (escape then 9)
  26. backspace
  27. moves back one column (8); ignored in the first column
  28. carriage return
  29. (13)
  30. newline
  31. forward line feed (10); also does carriage return
  32. shift in
  33. shift to normal character set (15)
  34. shift out
  35. shift to alternate character set (14)
  36. space
  37. moves forward one column (32)
  38. tab
  39. moves forward to next tab stop (9)
  40. vertical tab
  41. reverse line feed (11)
  42. All unrecognized control characters and escape sequences are discarded.
  43. Col keeps track of the character set as characters are read and makes sure the character set is correct when they are output.
  44. If the input attempts to back up to the last flushed line, col will display a warning message.
  45. SEE ALSO
  46. expand(1), nroff(1), tbl(1)
  47. STANDARDS
  48. The col utility conforms to the Single UNIX Specification, Version 2. The -l option is an extension to the standard.
  49. HISTORY
  50. A col command appeared in Version 6 AT&T UNIX.

comments powered by Disqus