Команды 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  

Команда: detab
sfk detab=tabsize dir ext1 [ext2 ...] [-to outmask]

   replace tabs by spaces within file(s) or text stream.

   options
      -to outmask   do not overwrite original files, but write
                    to output files according to outmask, e.g.
                    -to tmp\$path\$base.$ext or -to tmp\$file
      -yes          if files are selected, really (re)write them.
                    without -yes, detab is only simulated.
      -memlimit=n   process files with up to n mbytes (default=300).
      -nowarn       do not tell about skipped or unreadable files.

   see also
      sfk scantab   list files containing TAB characters.
      sfk help opt  how to change the memlimit permanently.
      sfk view      a text file viewer that can show all TAB
                    characters in blue by pressing CTRL+T.

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

   examples
      sfk detab=3 sources .cpp .hpp
         replace tabs by up to 3 blanks, within all .cpp and .hpp
         files of directory tree "sources".

      sfk select -dir src -file .java +detab=4 -to tmp\$file
         list all .java files of src, then detab with tabsize 4,
         writing all outputs to directory tree "tmp".

      sfk detab=4 src .java -relnames -to tmp\$file
         nearly the same, however stripping the "src" input directory
         name from output file paths (not possible with "+detab" form).

      sfk filter mytext.txt +detab=8
         detab content of a single file to the console.