How to do things
AI Noob vs. Pro

List biggest files
List newest files
Show subdir sizes
Search in files
Replace word in files
List dir differences
Send files in LAN

Free Open Source:

Swiss File Knife

a command line
multi function tool.

remove tabs
list dir sizes
find text
filter lines
find in path
collect text
instant ftp or
http server
file transfer
send text
patch text
patch binary
run own cmd
convert crlf
dup file find
md5 lists
fromto clip
hexdump
split files
list latest
compare dirs
save typing
trace http
echo colors
head & tail
dep. listing
find classes
speed shell
zip search
zip dir list

Depeche View
Source Research
First Steps

windows GUI
automation

command line
file encryption

free external tools,
zero install effort,
usb stick compliant:

zip and unzip
diff and merge
reformat xml
reformat source

cpp sources

log tracing
mem tracing
hexdump
using printf

articles

embedded
stat. c array
stat. java array
var. c array
var. java array
view all text
as you type
surf over text
find by click
quick copy
multi view
find nearby
fullscreen
bookmarks
find by path
expressions
location jump
skip accents
clip match
filter lines
edit text
highlight
load filter
hotkey list
receive text
send in C++
send in Java
smooth scroll
touch scroll
fly wxWidgets
fly over Qt
search Java

Supersonic Text File Search - Free Download

replace tab characters by spaces in your text files with a free open source command line tool for Windows, Mac OS X, Linux and Raspberry Pi.
  • 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-64.exe sfk and chmod +x sfk then ./sfk
  • Linux: type mv sfk-linux-64.exe sfk and chmod +x sfk then ./sfk. OS X and Linux syntax may differ, check the help within the tool.
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.
 
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:

   

   - download Depeche View Lite.
   - click on "Open", select the folder containing your text files.
   - click on the "showtab" button in the right bottom corner.

   All TAB characters will be shown in blue, and all blanks in yellow.

to search for TAB characters interactively:

   Within Depeche View, use the TAB keyword in your queries, e.g.

   -  type "TAB " to find all TAB characters.
      (Type it all uppercase, and don't forget the blank after TAB)

   -  type "TAB }" to find all curly brackets } preceeded by a tab:

   

   -  type "foo TAB bar" to find the word combination "foo" and "bar"
      with exactly one TAB character inbetween. Note that the blanks
      around "TAB" are not used in the search.
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.
 
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:

   

   - download Depeche View
Lite.  - click on "Open", select the
folder containing your text files. -
click on the "showtab" button in the right
bottom corner.

   All TAB characters will be shown in blue,
   and all blanks in yellow.

to search for TAB characters interactively: Within Depeche View, use the TAB keyword in your queries, e.g. - type "TAB " to find all TAB characters. (Type it all uppercase, and don't forget the blank after TAB) - type "TAB }" to find all curly brackets } preceeded by a tab: - type "foo TAB bar" to find the word combination "foo" and "bar" with exactly one TAB character inbetween. Note that the blanks around "TAB" are not used in the search.

you are viewing this page in mobile portrait mode with a limited layout. turn your device right, use a desktop browser or buy the sfk e-book for improved reading.

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

 

the Endless Image 🍣 Sushi