Swiss File Knife
a command line
free external tools,
- 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-i686.exe sfk and chmod +x sfk then ./sfk - Linux: type mv sfk-linux.exe sfk and chmod +x sfk then ./sfk OS X and Linux syntax may differ, check the help within the tool.
sfk name 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. 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 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) 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 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).
read more about all sfk functions here.