Swiss File Knife
a command line
free external tools,
- download the free swiss file knife base from sourceforge. - unpack the tool using winzip or unzip. - open the Windows Command Line or a Linux shell.
sfk echo [-spat] string [string2] [string3] [...] prints the supplied string to terminal, which may contain color patterns: [Red],[Green],[Blue],[Yellow],[Cyan],[Magenta] (bright) [red],[green],[blue],[yellow],[cyan],[magenta] (dark) print the following text in the selected color. [def] switch back to default color. [[ print the '[' character, no not interpret the following word. ]] print the ']' character, do not interpret it. further pattern support: -spat activates slash patterns: \t=TAB \q=" \r=CR \n=LF \xnn = any code with hex value nn. -literal or -lit disables everything, even color patterns. set this always if you need to process filenames in batch files, using echo to feed a command chain: sfk echo -lit %1 +filter -rep _/_\_ ... options: -noline stay in the same line, print no linefeed. if your string ends with \r, -noline is assumed. -noblank if multiple strings are given, do not insert blanks between them. see also: sfk help colors examples: sfk echo "[Red]error:[def] missing filename." prints "error: missing filename." onto terminal. sfk echo [Cyan]NOTE:[def] type the word [[red]] with brakets! prints "NOTE: type the word [red] with brakets!" onto terminal. sfk echo "[Green]mytext contains:[def]" +then filter mytext.txt +then forces echo not to pass its text to filter, but to print it immediately. filter then prints the content of mytext. sfk color colorname switches the text color of terminal (command line). supported color names are: white grey red green blue yellow cyan magenta black
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.