dktools

SourceForge.net Logo
Dirk Krause's tools

Overview

PDF manual "dkt.pdf" available

The package contains tools for both advanced users and administrators. Some of the programs are intended for use on Windows, others are made for Unix/Linux only.
There is a difference between dkapp-based programs which can be configured via preferences (on command line, user-specific and system-wide configuration files or registry entries) and simple programs not providing configuration via preferences.
The programs are licensed under the terms of a BSD-style license.
  Current version: 1.2.29

User tools

kls

The kls program is a sort clone. Output column order is configurable. Additional features are checksumming and size calculation for directories.
The program is dkapp-based.

ksort

ksort is a sort clone. The additional feature is sorting by floating point numbers at the beginning of a line.
The program is dkapp-based.

dksavepw

The program turns keyboard echo off and allows you to enter a password (twice) which is stored into a file.

klammern

klammern is a paranthesis/brackets counter for C source code. It may help to track down syntax errors from the compiler.
Today there are editors out there which can jump from one paranthesis to the matching one of a pair. The klammern program is for those users without such an editor.
This program is a simple program.

showhex

The showhex program shows the contents of a binary file in hexadecimal notation.
The program is dkapp-based.

echo2lat

The echo2lat program converts the command line arguments to the corresponding LaTeX codes.

text2lat

The text2lat application converts a text file into a LaTeX source file. Input and output file name can be specified on the command line. If no file names are specified the program works as a filter converting standard input to standard output.

text2htm

The text2htm application text (plain text or UTF-8 encoded text) to HTML. Depending on the command line options the program produces either a full HTML document or simply recodes characters to HTML.

filtmsql

The filtmsql application reformats output produced by mysqldump to break overlong lines.

tabrep

tabrep is a simple filter replacing tabulators by a sequence of spaces. This is usefull when placing source code in a verbatim-environment in LaTeX. This program is a simple program.
Note: To typeset source code in LaTeX you should better use a specialized package (i.e. ``listings''), not the ``verbatim'' environment.

cmb

When converting an EPS file to PDF using ps2pdf the resulting PDF file uses an entire page (A4 size or whatever your default is).
If you have a PostScript file you can run

epsffit 16 16 464 352 < a4landscape.eps > a5landscape.eps
To produce an image fitting into an A5 landscape page. To convert this page to PDF we can use
ps2pdf a5landscape.eps x.pdf
pdfcmb 0 0 480 368 < x.pdf > a5landscape.pdf

addctrld

Applications on Unix/Linux typically create print jobs in PostScript format. Most printers like to see control seqences before and after the print job to adjust resolution, simplex/duplex printing and to indicate the end of one print job. If a print system (i.e. LPRng or CUPS) is used, the control sequences are added by the print system. If a file is sent directly to a printer or to a very simple print system it is recommended to add a Ctrl-D to indicate the end of the print job.
The addctrld program is a simple filter adding a Ctrl-D byte.

dklogger

dklogger is a logger clone, mainly intended for Windows users.

dkpwd

The dkpwd program is a pwd clone, mainly intended for Windows users.

rndbytes

The rndbytes program writes pseudo random bytes to a file.

Administrator tools

tape

The tape program is a backup tape (backup media) management tool. It implements the 10-tape-rotation algorithm.
This program is a simple program.

createp

The createp program is a dkapp-based program to suggest passwords. Different password types can be used for different complexitiy (password length, amount of digits, uppercase characters and special characters).

uid

uid is a simple program to search for a free user ID in a given range on Unix/Linux systems.

cona

cona is a simple program to correct filenames on Unix/Linux systems.

edbp

edbp is a simple program to create byte patterns to erase an entire hard disk.