|
a command line
free external tools,
java sources
cpp sources
articles
|
- download the free swiss file knife base from sourceforge. - unpack the tool using winzip or unzip. - open the Windows Command Line.
sfk toclip
copy stdin to clipboard as plain text.
type test.txt | sfk toclip
copies the content of ASCII file test.txt into clipboard.
sfk list | sfk toclip
copies a file listing of the current dir into clipboard.
sfk fromclip [-wait] [-clear]
dump plain text content from clipboard to terminal.
-wait : block until plain text is available.
-clear: empty the clipboard after reading it.
Example: turn backslashes into forward slashes.
Imagine you have the following text open within notepad:
foo/bar/systems/alpha1.cpp
foo/bar/systems/alpha2.cpp
foo/bar/systems/beta1.cpp
and for some reason you need the first line in a format like this:
foo\bar\systems\alpha1.cpp
then you may do it this way:
1. mark the first line using SHIFT + CURSOR keys.
2. press CTRL+C or CTRL+INSERT to copy it into clipboard
3. on the windows command line, run this command (e.g. from a batch):
sfk fromclip +filter -rep x/x\x +toclip
4. back in the editor, press CTRL+V or SHIFT+INSERT,
pasting the result from the clipboard.
As you see, the line changed into "foo\bar\systems\alpha1.cpp".
Example: reformat a spreadsheet line for further processing.
Imagine you have the following Excel file open:
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.
|
|