|
|
||||||||||||||||||||||||||||
|
light speed a command line top 100 search
free external tools,
java sources
cpp sources
articles
|
Swiss File Knife - the open source file tree processor
Intense users may be interested in Swiss File Knife Extended Edition (XE), which can also read .zip, .jar, .tar.gz and .tar.bz2 file contents. Read more on that here. You may place questions in the sfk forums, or submit a tracker request. For software download sites: the SFK PAD file is available here. SFK binaries for Apple Macintosh are available here: i686 powerpc - but these are experimental and unsupported. SFK Extended Edition is not available for Macintosh. Now follows the sfk for windows syntax overview. (on linux, replace every ! character by :, and every $ by #. type wildcards with a preceeding slash: \* and \?) SFK - The Swiss File Knife File Tree Processor. Release 1.5.6 Base of Jan 30 2010. StahlWorks Art & Technology, http://stahlworks.com/dev/ Distributed for free under the BSD License, without any warranty. usage: sfk list [-late|-old|-big|-small] [...] dir [mask] list latest, oldest or biggest files within a directory tree. find identical files. list changed files between directories. list zip jar tar gz bz2 contents. type "sfk list" for more. sfk list -dir src1 -file .cpp -dir src2 -file .hpp sfk list -late=20 -pure sfk list -arc mydir .zip .jar sfk stat [-minsize=mb] dir [-i] show directory tree size statistics in mbytes. minsize: list only dirs and files >= minsize mbytes. -i: read list of files and directories from stdin. sfk stat -minsize=10m type dirlist.txt | sfk stat -quiet -i sfk find [-c] singledir pattern [pattern2] [pattern3] ... sfk grep [-c] -pat pattern [pattern2] -dir dir1 [-file] [.ext1] ... case-insensitive pattern search for text and binary. type "sfk find" for details. "sfk grep" is the same. sfk find . foobar docs sfk find -pat text1 text2 -dir src1 src2 -file .cpp .hpp sfk grep -pat mytext -dir . -file .txt -norec sfk filter <input >output [-lnum] [-c] -+orpat [-!nopat] [...] sfk filter infile -+pattern filter and process text lines, from file(s) or from standard input. find, replace, highlight words and ex*pre??ions, split and reformat text columns. type "sfk filter" for more. anyprog | sfk filter -+mypat -!otherpat sfk filter result.txt -rep _\_/_ -rep xC:\xD:\x sfk filefind [or ff] [pattern2 !pattern3 ...] [options] easy filename finder by path patterns. "sfk ff" for more. sfk env [-all] [word] [...] search within environment variables. sfk run "your command $file [$qfile] [...]" [-yes] [-quiet] sfk runloop ifrom ito "your command $[digits]i" [-yes] [-quiet] run self-defined command, on files or directories, or by counter. type "sfk run" or "sfk runloop" for details. sfk ftpserv [-h|-help] [-port=nport] [-rw] [-maxsize=n] run simple ftp server, providing access to current directory. this is especially helpful for file transfers with vmware machines. type "sfk ftpserv -help" for details. sfk ftp host[:port] [put|get filename] simple ftp client. if connecting to sfk server, this client uses sfk/sft protocol, which should always work even if ftp doesn't. type "sfk ftp" for details. sfk httpserv [-h|-help] [-port=nport] [-rw] instant http server, providing access to current directory. type "sfk httpserv -help" for details. sfk wget url [outdir] [-fullpath] download http:// content. type "sfk wget" for more. sfk split 2000m infile.dat [outfile.dat] sfk join infile.dat.part1 [outfile.dat] split and join large binary files. "sfk split" for more. sfk copy copy or synchronize files and dir trees. sfk partcopy copy some bytes from a file into another file. sfk detab=tabsize dir ext1 [ext2 ...] replace tabs by spaces within file(s). sfk detab=3 sources .cpp .hpp sfk detab=3 singleFileName.txt sfk scantab -dir dir1 dir2 -file ext1 [ext2 ...] check if files contain tabs. "sfk scantab" for more. sfk scantab -dir src1 src2 -file .cpp .hpp sfk scantab . .cpp .hpp sfk lf-to-crlf [or addcr] [dir .ext1 .ext2] or [singlefile] sfk crlf-to-lf [or remcr] [dir .ext1 .ext2] or [singlefile] convert between CR/LF and just LF text format. sfk remcr batches .bat .cmd sfk remcr mybatch.bat sfk text-join-lines infile outfile for text with lines split by email reformatting. sfk replace [...] -text /src/dst/ -dir mydir -file .ext1 [-yes] replace strings or byte blocks in files. "sfk rep" for more. sfk hexdump [-showle] [...] dir .ext1 .ext2 .ext3 sfk bin-to-src [-java] [-pack] [...] infile outfile namePrefix create hexdump, C or Java source code from binary data. type "sfk hexdump" or "sfk bin-to-src" for more. sfk tcpdump [-showle] [...] targetserver:port [-timeout msec] [-wide] create hexdump of a tcp connection. "sfk tcpdump" for more. sfk hextobin convert hexdump to binary data. sfk tail [head] [-lines=n] [-f[ollow] filename [filter options] print and follow last lines of a file. "sfk tail" for more. sfk addhead <in >out [-noblank] string1 string2 ... sfk addtail <in >out [-noblank] string1 string2 ... add string(s) at start or end of lines. with noblank specified, does not add blank char. sfk strings [-umlauts] [-wrapbin=n] filename extract strings from a binary file. text lines are split at column 80, which can be changed by -wrapbin or -wrap. sfk strings test.exe | sfk filter -+VersionInfo sfk pathfind anycmd.exe | sfk where anycmd.exe tells location of anycmd.exe within PATH. sfk deblank [-yes] replace blanks in filenames by "_" character. command only simulates. specify -yes to really rename. sfk del[ete] dir .ext1 .ext2 delete selected files. "sfk del" for more. sfk color colorname set text color to white, grey, red, green, blue, yellow, black. sfk echo [color]text[def] [text2] [...] print colored text onto console. "sfk echo" for details. sfk sleep msec delay execution for a number of milliseconds. sfk pause [-quiet|mytext] wait until user presses any key. sfk snapto=outfile [-pure] [-norec] -dir mydir1 -file .ext1 .ext2 collect many files into one large text file. "sfk snapto" for more. sfk synctext=dbfile [-stop] dir mask [!mask2] edit many files in parallel, by editing a single collection file. type "sfk synctext" for details. sfk md5gento=outfile dir [mask] [mask2] [!mask3] [...] sfk md5gento outfile -dir dir1 dir2 -file mask1 mask2 !mask3 [...] create list of md5 checksums over all files. sfk md5gento=md5.dat . sfk md5check infile [-skip=n] [-skip n] verify list of md5 checksums. to speed up verifys by spot checking, specify -skip=n: after every checked file, n files will be skipped. sfk md5check md5.dat sfk md5 [-quiet] [-verify md5sum] filename [filename2 filename3 ...] create md5 of file(s), without a list. "sfk md5" for details. sfk dupfind [-minsize=n] -dir dir1 -file .ext1 -dir dir2 -file .ext2 find duplicate files. "sfk dupfind" for details. sfk reflist [-abs] [-wide] -dir sdir -file .ext1 -dir tdir -file .ext2 sfk deplist [-abs] [-wide] -dir sdir -dir tdir1 tdir2 [-file .ext] find file references or dependencies. "sfk reflist" for help. sfk alias [-list|-del|-ren] [shortname] [=] [command] create command aliases to save typing effort. "sfk alias" for help. sfk cd, getcwd change dir in command chain, get current work dir. sfk mkdir path create directory, or tree of directories. sfk mkcd cdname create an alias remembering the current dir. sfk ... +view show results in Depeche View. "sfk view" for more. sfk patch [...] dynamic source file patching. "sfk patch" for more. sfk sample create java, c++, php etc. example source code. sfk batch create a batch file with embedded sfk commands. sfk script execute sfk commands from a script file. sfk linelen tell minimum or maximum length of string(s). sfk hex [or dec] convert numbers between decimal and hexadecimal. sfk ... +sort sort text output of a previous command. sfk ... +count count no. of lines, or duplicate occurences. sfk ... +loop repeat the execution of command(s). sfk ... +if ... conditional execution. "sfk if" for more. sfk ... +call call script functions. "sfk call" for more. sfk inst instrument c++ source code with tracing calls. sfk make-random-file create a file full of random data. sfk ownip print ip address(es) of own machine. sfk udpdump print content of incoming UDP packets. sfk toclip - copy stdin to clipboard as plain text (windows only). sfk fromclip - get text from clipboard. "sfk fromclip -h" for more. sfk help ascii [-ansi|-dos] - list ascii character set. sfk help shell - how to optimize your windows Command Prompt. sfk chars phrase - list character codes of given phrase. All tree walking commands support file selection this way: 1. short format with ONE directory tree and MANY file name patterns: src1dir .cpp .hpp .xml bigbar !footmp 2. short format with a list of explicite file names: letter1.txt revenues9.xls report3\turnover5.ppt 3. long format with MANY dir trees and file masks PER dir tree: -dir src1 src2 !src\save -file foosys .cpp -dir bin5 -file .exe * and ? wildcards are supported within filenames. "foo" is interpreted as "*foo*", so you can leave out * completely to search a part of a name. (Linux users use \* instead of *, and \? instead of ?, or type "sfk" in the Linux shell for more infos on wildcard replacement characters.) For name start comparison, say "\foo" (finds foo.txt but not anyfoo.txt). When you supply a directory name, by default this means "take all files". The snapto function also supports option -all, meaning "all text files". sfk list mydir lists ALL files of mydir, no * needed. sfk list mydir .cpp .hpp lists SOME files of mydir, by extension. sfk list mydir !.cfg lists all files of mydir EXCEPT .cfg sfk snapto=a.txt mydir .doc collect ONLY .doc (which are binaries). sfk snapto=a.txt mydir -all .doc collect all text files, AND also .doc general options: -tracesel tells in detail which files and/or directories are included or excluded, and why (due to which user-supplied mask). -nosub do not process files within subdirectories. -nocol before any command switches off color output. -quiet or -nohead shows less output on some commands. -hidden includes hidden and system files and dirs. type "sfk help colors" about how to change result colors. type "sfk help select" for more on how to select files. type "sfk help options" to list all general options and configs. type "sfk help chain" about how to combine multiple commands. type "sfk help patterns" for supported wildcards and slash patterns. type "sfk help xe" for infos on sfk extended edition. type "sfk ask word1 word2 ..." to search ALL help text for words. type "sfk dumphelp" to print ALL help text.
|
|