|
a command line
Depeche View
command line
free external tools,
java sources
cpp sources
articles
|
Windows: after download, open a command line (CMD.exe) then CD into the download folder and type "sfk" for the help text. Mac OS X: open the .DMG then control+click on the contained script and select Open. Linux: after download, open a command line or terminal, then rename to sfk like "mv sfk-linux.exe sfk", make it executable by "chmod +x sfk" and type "./sfk"
Intense users may be interested in Swiss File Knife Extended Edition (XE) which features a high performance replace command for large text and binary files, and which can also read .zip, .jar, .tar.gz and .tar.bz2 file contents. Read more on that here. The current version is 1.7.6.3 Read the list of recent changes 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 Icons and example code for linking can be found here.
Now follows the SFK for Windows syntax overview. (On Mac OS X and 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.7.6 Base/XD Revision 3 of May 1 2016.
StahlWorks Technologies, http://stahlworks.com/
Distributed for free under the BSD License, without any warranty.
type "sfk commandname" for help on any of the following.
some commands require to add "-help" for the help text.
file system
sfk list - list directory tree contents.
list latest, oldest or biggest files.
list directory differences.
list zip jar tar gz bz2 contents.
sfk filefind - find files by filename
sfk treesize - show directory size statistics
sfk copy - copy directory trees additively
sfk sync - mirror tree content with deletion
sfk rename - flexible multi file rename
sfk partcopy - copy part from a file into another one
sfk mkdir - create directory tree
sfk delete - delete files and folders
sfk deltree - delete whole directory tree
sfk deblank - remove blanks in filenames
sfk space [-h] - tell total and free size of volume
sfk filetime - tell times of a file
sfk touch - change times of a file
sfk index - create index file(s) for fast lookup
sfk iname - lookup file names using index files
sfk fixfile - change bad filenames and file times
networking
sfk httpserv - run an instant HTTP server.
type "sfk httpserv -help" for help.
sfk ftpserv - run an instant FTP server
type "sfk ftpserv -help" for help.
sfk ftp - instant anonymous FTP client
sfk wget - download HTTP file from the web
sfk webrequest - send HTTP request to a server
sfk tcpdump - print TCP conversation between programs
sfk udpdump - print incoming UDP requests
sfk udpsend - send UDP requests
sfk ip - tell own machine's IP address(es).
type "sfk ip -help" for help.
sfk netlog - send text outputs to network,
and/or file, and/or terminal
sfk fromnet - receive and print network text
sfk ping - ping multiple machines in one go
scripting
sfk script - run many sfk commands in a script file
sfk echo - print (coloured) text to terminal
sfk color - change text color of terminal
sfk alias - create command from other commands
sfk mkcd - create command to reenter directory
sfk sleep - delay execution for milliseconds
sfk pause - wait for user input
sfk label - define starting point for a script
sfk tee - split command output in two streams
sfk tofile - save command output to a file
sfk toterm - flush command output to terminal
sfk loop - repeat execution of a command chain
sfk cd - change directory within a script
sfk getcwd - print the current working directory
sfk require - compare version text
sfk time [-h] - print current date and time
development
sfk bin-to-src - convert binary data to source code
sfk make-random-file - create file with random data
sfk fuzz - change file at random, for testing
sfk sample - print example code for programming
sfk inst - instrument c++ with tracing calls
diverse
sfk number - print number in diverse formats
sfk xmlform - reformat xml for easy viewing
sfk media - cut video and binary files
sfk view - show results in a GUI tool
sfk toclip - copy command output to clipboard
sfk fromclip - read text from clipboard
sfk env - search environment variables
sfk version - show version of a binary file
sfk ascii - list ISO 8859-1 ASCII characters
sfk ascii -dos - list OEM codepage 850 characters
sfk spell [-h] - phonetic spelling for telephone
sfk cmd - print an example command
sfk license - print the SFK license text
help by subject
sfk help select - how dirs and files are selected in sfk
sfk help options - general options reference
sfk help patterns - wildcards and text patterns within sfk
sfk help chain - how to combine (chain) multiple commands
sfk help shell - how to optimize the windows command prompt
sfk help unicode - about unicode file reading support
sfk help colors - how to change result colors
sfk help compile - how to compile sfk on any linux system
sfk help xe - infos on sfk extended edition
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
For detailed help on file selection, type "sfk help select".
* and ? wildcards are supported within filenames. "foo" is interpreted
as "*foo*", so you can leave out * completely to search a part of a name.
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".
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
|
|
|||||||||||||||||||||||||||||||||||||||||||||||