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

Find filenames by any word as fast as possible using index files with the free sfk iname command.
  • 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 name[2] word [word2] [!exclude] [.ext]

find filenames as fast as possible by using
index files created by sfk index or gindex.

sfk name word [word2] [word3] [...]
  will use local index files zz-index.txt
     - in the current folder
     - in the parent folder
     - and so on, until the root folder "\"
  and also the global Base Index file from
  C:\Users\main\AppData\Local\.sfkhome
  and then lists all file names from those indexes
  having the given words in their name or path.
  Under windows, instead of C:\zz-index.txt
  it will read C:\zz-index\zz-index.txt

sfk name2 word [word2] [word3] [...]
  does the same as name, but also includes
  the global Extended Index file.

sfk gname uses only the global index.
sfk lname uses only local index files.

pattern syntax
 - just type up to 10 words that must be contained
   somehere in the file name or it's path. the words
   are AND combined. the sequence is ignored.
 - words starting with ! or : will exclude any file
   having the word in it's name.
 - words starting with "." are a file extension and
   must appear only at the END of a file name, or be
   followed in the filename by another "."
   like ".so" in foobar.so.1.2.3

options
   -size      include size info in result
   -size=n    pad size info to n characters
   -tab       create tab separated output
   -withmeta  include meta data in search:
              date, like 2019-12-31
              time, like 23:59:01
              size, like 12345
   -meta      search just in meta data
   -spat      support slash pattern \t for tab

output sorting
   output is always sorted by file modification time,
   listing the most recent files at the list bottom.

chaining support
   output chaining is supported.

aliases
   sfk iname  same as sfk name
   sfk x      same as sfk name
   sfk x2     same as sfk name2

see also
   sfk gindex   - create global index file(s)
   sfk index    - create local  index file(s)
   sfk home     - tell sfk home folder location

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

examples
   sfk name .pdf
      lists all PDF files in the Base Index.
   sfk name part 2391 datasheet .pdf
      lists all PDF files in the Base Index having
      the words "part", "2391" and "datasheet"
      somewhere in their name, for example:
         C:\documentation\datasheets\parts\2391.pdf
         C:\server2391beta\subparts\datasheet.pdf
   sfk name2 part 2391 datasheet .pdf
      the same, but may list further results also
      from the extended index, for example:
         Z:\public\docs\part-2391\datasheet-03.pdf.old
   sfk name .hpp +find class tree
      search all .hpp header files from the local index
      for the words "class" and "tree".
   sfk name tree .hpp +fview
      load and view all .hpp files having "tree"
      in their name or path. ("sfk view" for more)
   sfk name metronome .mp3 +copy tmp -flat
      copy all .mp3 files with metronome into a single
      output folder, without sub folders.
   sfk name -spat foobar\r
      list filenames ending with 'foobar'
   sfk name -meta -spat \t1234\t
      list files with an exact size of 1234 bytes.
 
sfk name[2] word [word2] [!exclude] [.ext]

find filenames as fast as possible by using
index files created by sfk index or 
gindex.

sfk name word [word2] [word3] [...]
  will use local index files zz-index.txt
     - in the current folder
     - in the parent folder
     - and so on, until the root folder "\"
  and also the global Base Index file from
  C:\Users\main\AppData\Local\.sfkhome
  and then lists all file names from those 
indexes having the given words in their
name or path. Under windows, instead of
C:\zz-index.txt it will read C:\zz-index\
zz-index.txt

sfk name2 word [word2] [word3] [...]
  does the same as name, but also includes
  the global Extended Index file.

sfk gname uses only the global index.
sfk lname uses only local index files.

pattern syntax
 - just type up to 10 words that must be 
   contained somehere in the file name or
   it's path. the words are AND combined.
   the sequence is ignored.
 - words starting with ! or : will exclude 
   any file having the word in it's name.
 - words starting with "." are a file 
   extension and must appear only at the
   END of a file name, or be followed in
   the filename by another "." like ".so"
   in foobar.so.1.2.3

options
   -size      include size info in result
   -size=n    pad size info to n characters
   -tab       create tab separated output
   -withmeta  include meta data in search:
              date, like 2019-12-31
              time, like 23:59:01
              size, like 12345
   -meta      search just in meta data
   -spat      support slash pattern \t 
              for tab

output sorting
   output is always sorted by file 
   modification time, listing the most
   recent files at the list bottom.

chaining support
   output chaining is supported.

aliases
   sfk iname  same as sfk name
   sfk x      same as sfk name
   sfk x2     same as sfk name2

see also
   sfk gindex   - create global index 
                  file(s)
   sfk index    - create local  index 
                  file(s)
   sfk home     - tell sfk home folder 
                  location

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

examples sfk name .pdf lists all PDF files in the Base Index. sfk name part 2391 datasheet .pdf lists all PDF files in the Base Index having the words "part", "2391" and "datasheet" somewhere in their name, for example: C:\documentation\datasheets\parts\ 2391.pdf C:\server2391beta\ subparts\datasheet.pdf sfk name2 part 2391 datasheet .pdf the same, but may list further results also from the extended index, for example: Z:\public\docs\part-2391\ datasheet-03.pdf.old sfk name .hpp +find class tree search all .hpp header files from the local index for the words "class" and "tree". sfk name tree .hpp +fview load and view all .hpp files having "tree" in their name or path. ("sfk view" for more) sfk name metronome .mp3 +copy tmp -flat copy all .mp3 files with metronome into a single output folder, without sub folders. sfk name -spat foobar\r list filenames ending with 'foobar' sfk name -meta -spat \t1234\t list files with an exact size of 1234 bytes.

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