Swiss File Knife
a command line
free external tools,
- download the free Swiss File Knife Base from Sourceforge. - open the Windows CMD command line, Mac OS X Terminal or Linux shell. - OS X : type mv sfk-mac-i686.exe sfk and chmod +x sfk then ./sfk - Linux: type mv sfk-linux.exe sfk and chmod +x sfk then ./sfk OS X and Linux syntax may differ, check the help within the tool.
sfk entab=tabsize dir ext1 [ext2 ...] replace groups of spaces by tabs within file(s). 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, entab 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-entab examples sfk entab=3 sources .cpp .hpp replace 3 spaces each by a TAB character in all .cpp and .hpp files within folder sources. sfk entab=3 singleFileName.txt the same, but only in a single file.
sfk is a free open-source tool, running instantly without installation efforts. no DLL's,
no registry changes - just get sfk.exe from the zip package and use it (binaries for
windows, linux and mac are included).
read more about all sfk functions here.