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 filefind [or ff] pattern [pattern2 !pattern3 ...] [opts] easy file name finder for the current directory tree. if you remember any words of a filename, or its path, type "sfk ff " and the words to find matching filenames. to type even less, try "sfk :" followed by the first word, without blank: "sfk :word1 word2 ..." note: - searches the current directory "." and all subdirectories. - the full filename paths, including relative filenames, are compared (not just the relative filenames). - the patterns are AND combined (not OR as with list), meaning that ALL given patterns must appear in a path to have it listed. the pattern sequence is ignored. - options may appear anywhere. - exclude patterns starting with ! are also supported. options -time list also file times. -size[=n] show size of files [n characters wide] -kbytes or -kb lists sizes in kbytes instead of bytes -mbytes or -gbytes lists sizes in mbytes or gbytes -kbpure list without "kb" postfix -arc include .zip .jar .tar etc. archive contents. chaining support output chaining is supported. web reference http://stahlworks.com/sfk-filefind examples sfk filefind foo bar !save lists all files in the current directory tree having both foo and bar in their path+filename, regardless of sequence. files having "save" in their path (or name) are excluded. sfk ff foo*bar thing +fview similar to the above, lists all files having bar AFTER foo in their path+filename. thing must also be present. resulting files are loaded and shown in Depeche View. sfk :.pdf list all .pdf files down somewhere in the directory tree. sfk :debug*.o +del delete all debug executables in the current directory tree. see also: sfk list dirname filenamepattern ... sfk list dirname +filter -+pattern1 -+pattern2 ...
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.