Create tab separated CSV text files with all filenames of a folder, including time and size information, with the free sfk index command.
sfk gindex [opts] -dir rootDir [rootDir2] ...sfk index [opts] -dir localDir ...
create index file(s) containing file names with time
and size info, for later realtime filename lookup,
or just to archive folder meta data.
creating index files for use with sfk name
to create a local index of the current directory tree, use
sfk index .
which writes a local file zz-index.txt.
Under windows, no files are written to C:\
directly, but only to a folder C:\zz-index\
to avoid storage in a special system folder
to create a global index of the current machine, use
sfk gindex -dir C:\ D:\
which stores a base index file in your user folder:
to create an extended global index of network drives, use
sfk gindex2 -dir T:\ P:\ V:\
if drives T, P, V are network drives. this will write
an extended index file in a user local folder:
in other words:
sfk index writes an index locally onto the disk
where you are standing, visible for all users.
this is useful 1. under linux in the root dir "/"
to make an index of all files available for all users
2. on external media like USB hard drives, where an
index in the drive root can be used on any machine.
sfk gindex is your personal global index of whatever
disk contents are important for you, not for useby other users, and maintained only by yourself.
creating special purpose meta data archives
to create a local index of a sub folder "mydir", use
sfk index mydir
which writes a file zz-index-mydir.txt. this file
can NOT be used with sfk name. it's just an archive
of file meta informations for that sub folder.
using indexes for fast name lookupsfk name word [word2] [word3] [...]
will use local index files:
- in the current folder
- in the parent folder
- and so on, until the root folder "\"
- and also the global Base Index file
and then lists all file names from those indexes
having the given words in their name or path.
sfk name2 word [word2] [word3] [...]
does the same as name, but also includes
the global Extended Index file.
sfk index options
-tofile f write output into a file f instead of the
default index file. can be used then with
"sfk name -from f ..."
-hidden list also hidden or system files
-arc include contents of .zip .jar .ear etc. archives
and also .gz, .bz2, .tar, .tar.gz and .tar.bz2
as deep as possible, including nested archives.
type "sfk help opt" for supported file extensions.
-qarc quick list archives, lists only archive entries
at the top level, skipping nested archives.
aliasessfk lindex same as sfk indexsfk iname same as sfk namesee alsosfk name lookup files in local and Base Indexes
sfk name2 lookup in local, Base and Extended Index
sfk help select the sfk file selection syntax.
sfk help opt for further general options.
sfk dir list contents of a directory.
sfk home tell sfk home folder location
web referencehttp://stahlworks.com/sfk-indexexamplessfk gindex C:\
create a global Base Index containing all file names
from drive C: using a short syntax.
sfk gindex C:\ !.tmp !.bak
the same, but excluding all .tmp and .bak files.
to include another drive letter in the index,
the long syntax must be used:
sfk gindex -dir C:\ D:\ -subdir !tmp -file !.bak
create Base Index of C: and D: without any sub
dirs having tmp in their name, and w/o .bak files.
sfk gindex2 -dir P:\ W:\
if P: and W: are network drives, this creates
an Extended Index file with their contents.
sfk index .
if standing in the root dir of a drive like D:\
this will write a local index file for that drive
which can later be used by typing sfk name
from within in any folder on that drive.