No installation. USB stick portable applications.
Swiss File Knife

a command line
multi function tool.

remove tabs
list dir sizes
find text
filter lines
find in path
collect text
instant ftp or
http server
file transfer
send text
patch text
patch binary
run own cmd
convert crlf
dup file find
md5 lists
fromto clip
hexdump
split files
list latest
compare dirs
save typing
trace http
echo colors
head & tail
find classes
dep. listing
speed shell
zip search
zip dir list

Depeche View
Source Research
First Steps

using vm linux

windows GUI
automation

the d3caster
java game engine

command line
file encryption

free external tools,
zero install effort,
usb stick compliant:

zip and unzip
diff and merge
reformat xml
reformat source

java sources

thread creation

cpp sources

log tracing
mem tracing
hexdump
using printf

articles

embedded
stat. c array
stat. java array
var. c array
var. java array
view all text
as you type
surf over text
find by click
quick copy
multi view
find nearby
fullscreen
bookmarks
find by path
expressions
location jump
skip accents
clip match
filter lines
edit text
highlight
load filter
hotkey list
receive text
send in C++
send in Java
smooth scroll
touch scroll
fly wxWidgets
fly over Qt
search Java

 
Bookmark on del.icio.us Bookmark on Google Add to Mr. Wong
Bookmark on digg.com Add to StumbleUpon Bookmark on Yahoo

 

get text from the windows clipboard, or put text into clipboard


from within batch files using sfk fromclip and toclip on the command line.
- download the free Swiss File Knife Base from Sourceforge.
- open the Windows Command Line.
SFK The Book - Read Syntax In The Subway.
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:



and you need the data from line 3 as comma separated values.
Now, if you click left into line 3:



and press CTRL+C, the line is copied into clipboard, however as TAB-
separated data. (at least that's the behaviour seen with Excel.
Other packages like OpenOffice may behave different.)
So if you say on the command line:

sfk fromclip

what you get is

Foo Finance     4498542 1999    950     Dino

how do you turn this into comma-separated values?
we have 5 columns, therefore extend the above command like this
[type the following all in ONE line]:

sfk fromclip +filter -spat -sep "\t" 
-form "$col1;$col2;$col3;$col4;$col5"

which will result in this output:

Foo Finance;4498542;1999;950;Dino

to make the data even safer for post-processing, we may surround
every value by quotes this way [type the following all in ONE line]:

sfk fromclip +filter -spat -sep "\t" 
-form "\"$col1\";\"$col2\";\"$col3\";\"$col4\";\"$col5\""

this is hard to type, of course, but if you place it into a .bat
file, you only have to type it once. this results in:

"Foo Finance";"4498542";"1999";"950";"Dino"

As ever, the same result may be achieved in may ways.
For example, you may also save the whole spreadsheet data
as a comma-separated file, and then filter it by

sfk filter export.csv "-+Foo Finance"

which should produce the same line.
 


 
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.

Download the free Depeche View Lite Text Search Tool