Major 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
------------------------------------------------------------------
the files are no longer replaced on updates,
and can be safely linked by package managers.
old folders from which no files are ever downloaded
may be cleaned up after a while.
------------------------------------------------------------------
- rel: 04.07.2018, Major Update
- sum: added sfk move to move files,
getcol and tabcol to easily get a column
from space or tab separated text.
improvements of xed, getvar, scripting.
fixed context cleanup of perline.
- chg: Syntax Change: sfk zip: no longer adds .zip
to output filename if it contains any dot '.'.
this allows to create zip files with any
extension, like .odt or .jar.
use option -zipext for the old behaviour.
- add: checkzip: option -md5 to show md5 checksums
of zip file contents
- add: general option -more to pause output
per page.
- add: xhexfind: option -context=n to show
n bytes of context around results.
- add: sfk for: now supports counting down,
negative start/end values, and optional
step size.
- add: sfk zip: option -rel to strip top level
folder name of filenames within zip.
- add: sfk xed: option -write to rewrite a given
file with changed output.
- fix: sfk if: now supports expression starting
with plus like: if "+a = +a" ...
- fix: perline: context and options were not
fully reset between two lines, e.g.
load files.txt +perline "list #qtext" -yes
produced wrong output.
- add: sfk move: move files between two folders.
- add: sfk mkdir: option -forfile to create dir tree
for a given filename
- add: scripts: #(substr(s,o,l)) now also supports
variable (names) for o and l.
- add: scripts: #(rsubstr(s,o,l)) to get substring
from the right side in left direction.
- add: sfk getcol, tabcol to get one column from
whitespace or tab separated text.
alias of sfk filter.
- add: sfk ping: option -every to ping every n sec.
- add: make-random-file: output folder creation.
- add: sfk times, alias for sfk list -times.
- add: list: now also accepts -times with 's'.
- add: sfk getvar: option -numline=n to get
a line by number.
- add: zip/unzip: option -offtime to support
file times which are one hour off.
- fix: xtext: with -to out\$file it produced error -4
during simulation.
- fix: xtext: -to out\$file no longer writes :file
headers into output files.
- fix: rand: missing range check.
- fix: ifexist file stop -all ... was not possible.
- fix: windows mingw g++ compile.
- chg: sfk if: improved "need a command" error info.
- doc: list: example how to keep only existing
filenames from a list of filenames
- doc: count: example for filter/setvar/count.
- doc: copy: reference to move.
- doc: xtext: how to extract text starting at a line.
- doc: help var: new (r)substr behaviour.
- doc: addcr: example for current folder.
- doc: sfk times example.
- doc: sfk zip: example to unzip/zip an .odt file.