Maintenance Update.
Read the changelist for details.
Zip File Contents:
1. Binaries of Swiss File Knife Base, the multi function command line tool
for Windows (XP to Windows 8), Intel Linux (current and old releases),
Apple Macintosh (i686 and PPC) and ARM systems like Raspberry Pi.
2. Sourcecode and build scripts of SFK Base,
allowing compilation under Windows and Linux.
3. Some documentation, example and test files.
If you are in a hurry and want only a single executable,
- download any of these files:
sfk.exe Swiss File Knife for Windows.
sfk-linux.exe SFK for 32 bits Intel Linux, like Ubuntu.
sfk-linux-64.exe SFK for 64 bits Intel Linux, like Ubuntu 64.
sfk-linux-lib5.exe SFK for older Intel Linux, like DSL.
sfk-mac-i686.exe SFK for current Intel based Macs.
sfk-mac-ppc.exe SFK for older PowerPC Macs.
sfk-arm.exe SFK for ARM systems like Raspberry Pi.
sfktray-set-up.exe The SFKTray Status Display Tool for Windows,
Freeware edition, for use with sfk status.
- do NOT double click on the downloaded .exe,
but open a terminal or command line window (CMD.EXE).
- cd into your download folder.
- Linux/Mac: rename the .exe to just "sfk" like:
mv sfk-mac-i686.exe sfk
then make it executable by:
chmod +x sfk
and finally type:
./sfk
- Windows: rename the .exe to sfk.exe then type "sfk"
if you have no unzip tool, or in a wrong version,
you may download unzip for the command line from
http://stahlworks.com/dev/index.php?tool=zipunzip
------------------------------------------------------------------
files are no longer replaced on updates,
and can be safely linked by package managers.
however old folders from which no files are ever downloaded
may be cleaned up after a while.
------------------------------------------------------------------
Revision 2:
- rel: 10.01.2018, Minor Update
- sum: improved scripting error messages.
better rename support in scripts.
added filter option to skip first lines.
- add: sfk renfile, rename just a single file,
for use in sfk scripts.
- add: filter -skipfirst=n to skip first n lines.
- chg: -nocol given locally at a command no longer
changes the global color mode.
- chg: scripts: every command given like +cmdname
can now be used in a script, no longer producing
the error "does not support input chaining".
- add: sfk ren, xren: option -quiet to print nothing.
- add: sfk ren, xren: now tells number of changed files.
option -[no]stat to show or hide statistics.
- add: sfk rmtree: option -quiet to print nothing,
option -stat to show statistics with -quiet.
- fix: scripts: unknown commands were ignored silently,
they now produce an error "unknown command".
- fix: -memlimit=3000 did not work.
- fix: sfk prompt help text.
- doc: improved prompt example.
Initial Release:
- rel: 06.12.2017, Major Update
- sum: improved scripting with if begin endif blocks.
better display of windows filenames on more codepages.
added sfk rand to create random numbers,
sfk prompt to allow user input.
fixed xex return code handling
and stop of script after sfk status.
- chg: windows: improved display of european filenames
using non latin characters in the own codepage.
- chg: sfk batch tmp.bat: the example is now
a short number game with status lights.
- add: scripting: +if expr +begin ... +endif
to execute multiple commands as one block
if given expression is true.
- add: scripting: easy check if a variable text contains
a phrase by: if "#(contains(mystr,'text'))"
- add: if: support for if "rc<>1" to check if command rc
is different to a value.
- add: sfk rand to create a random number.
- add: sfk prompt to ask for user input.
- chg: sfk status: no longer requires protocol version.
- fix: xex: return code was always 1 if previous
command set it, no matter if xex found data.
- fix: fixfile: option -dewide displayed invalid date 1900...
in simulation preview.
- fix: possible crash on setvar with empty value.
- fix: status: silent stop of command chain with
some following commands like +list
- chg: windows OSE compile support for MSVC 14.
- chg: chaining from +tell to other commands like +setvar
no longer requires +then.
- chg: improved tracing of variable expansion
by -debug like +tell -debug "#(strlen(a))"
- doc: xex: how to check if a variable contains a word.
- doc: help var: how to search a variable in a variable.