|
|
||||||||||||||||||||
|
light speed a command line top 100 search
free external tools,
java sources
cpp sources
articles
|
- download the free swiss file knife base from sourceforge. - unpack the tool using winzip or unzip. - open the Windows Command Line or a Linux shell.
sfk detab=tabsize dir ext1 [ext2 ...] [-to outmask]
replace tabs by spaces 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
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).
to find how many files would need detabbing, type for example:
sfk scantab testfiles .hpp .cpp .txt
-> scans directory testfiles, and all subdirectories,
for .hpp, .cpp and .txt files containing tab characters.
example output:
list of files containing tabs:
testfiles\Formats\01-native-tab-crlf.txt
testfiles\Formats\02-crlf.txt
testfiles\Formats\03-native-tab-lf.txt
testfiles\Formats\04-lf.txt
testfiles\Formats\08-head-tail.txt
testfiles\Formats\20-tab-data-line.txt
6 files of 32 contain tabs.
to view TAB characters in your files interactively like this:
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 (windows and linux binaries are included). read more about all sfk functions here.
|
|