Команды SFK


    1        2        3        4        5        6        7        8        9        10    

Раздел 3. Conversion - Преобразование
bin-to-src | chars | crlf-to-lf | csvtotab | dec | decode | detab | encode | entab | hex | hexdump | hextobin | join | lf-to-crlf | oload | scantab | split | tabtocsv | utoa | uuencode | wtoa | wtou |

Help:   Рус   |   Eng        Refer:   Рус   |   Eng  

Команда: crlf-to-lf
sfk crlf-to-lf [options] dir .ext1 .ext2 [-to outmask]

   convert cr+lf (dos/windows) text format to just-lf (unix).

   if only a single filename, or list of filenames, is given
   then these are converted immediately.

   if a directory parameter is given then the command runs
   in simulation mode, requiring option -yes to convert.

   options
      -forceend    if a file is changed and rewritten then
                   also add a line ending at the last line
                   even if there was none in the input file.
      -writeall    rewrite all files no matter if changed

   aliases
      sfk remcr    same as sfk crlf-to-lf

   see also
      sfk addcr    convert lf to crlf
      sfk listle   list line end infos for files

   web reference
      http://stahlworks.com/sfk-remcrlf

   examples
      sfk remcr src .cpp .hpp
         reduce crlf to lf on all .cpp and .hpp files within src.

      sfk select -dir doc -file .txt +remcr -to tmp\$file
         change crlf on all .txt files within doc, saving to tmp.