最終更新:2014-03-24 (月) 00:29:56 (2332d)  

col
Top / col

filter reverse line feeds from input

パラメータ

     -b     Do not output any backspaces, printing only the last character written to each column position.

     -f     Forward half line feeds are permitted (‘‘fine’’ mode).  Normally characters printed on a half line boundary are printed
            on the following line.

     -p     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.

     -x     Output multiple spaces instead of tabs.

     -lnum  Buffer at least num lines in memory.  By default, 128 lines are buffered.

man制御文字を除去

  • $ man ls | col -bfx > ls.txt