Find filenames by any word as fast as possible using index files with the free sfk iname command.
sfk iname word [word2] [!exclude] [.ext]
find filenames as fast as possible by using
index files created by sfk lindex or gindex.
sfk iname 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
and then lists all file names from those indexes
having the given words in their name or path.
sfk iname2 word [word2] [word3] [...]
does the same as iname, but also includes
the global Extended Index file.
sfk gname uses only the global index.
sfk lname uses only local index files.
- 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
-size include size info in result
-size=n pad size info to n characters
-tab create tab separated output
output is always sorted by file modification time,
listing the most recent files at the list bottom.
output chaining is supported.
aliasessfk x is the same as sfk inamesfk x2 is the same as sfk iname2see alsosfk gindex - create global index file(s)
sfk lindex - create local index file(s)
web referencehttp://stahlworks.com/sfk-inameexamplessfk iname .pdf
lists all PDF files in the Base Index.
sfk iname 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:
sfk iname2 part 2391 datasheet .pdf
the same, but may list further results also
from the extended index, for example:
sfk iname .hpp +find class tree
search all .hpp header files from the index
for the words "class" and "tree".
sfk iname tree .hpp +fview
load and view all .hpp files having "tree"
in their name or path. ("sfk view" for more)