Bash substitution
Bash supports a surprising number of string manipulation operations. Unfortunately, these tools lack a unified focus. Some are a subset of parameter substitution, and others fall under the functionality of the UNIX expr command. This results in inconsistent command syntax and overlap of functionality, not to mention confusion. * This is a short explanation of...
Make pdf files
Two ways to combine existing pdf files stored in lists. pdfpages A simple solution to combine multiple pdf files is to use LaTeX respectively the pdfpages package. With this code you can layout pdf pages on a page according to some parametres. You need a working LaTeX installation, e.g. texlive on debian or ubuntu. You...
Make control files
To use GNU/Linux’s text processing abilities for graphic design, I needed to find a way to expand this world of plain text. My approach herefore is the automated generation of plain text control files, that serve as input for software, that extends the world of plain text. Lists are the most simple example for a...
Bash Fundamentals
This is a very short and incomplete introduction to the Bourne-Again Shell. On the commandline most programs follow the simple principle of creating and modifying plain text. To make this approach extremly productive the Bash offers some mechanisms. The so-called pipe character (|) acts like a plug to send the output of one program to...
html2ps
Generate a HTML file with random colored table cells. Convert to pdf via html2ps. #!/bin/bash # FFFFFF:000000:FF0000:00FF00:0000FF # COLORS HTMLFILE=colortable.htm W=10 H=70 echo "<html><body>" > $HTMLFILE echo "<table width=\"100%\" height=\"100%\">" >> $HTMLFILE ROW=0; while [ $ROW -lt $H ] do echo "<tr>" >> $HTMLFILE CELL=0; while [ $CELL -lt $W ]...
HTML
It is possible to examine text data without conversion tools. If the data doesn’t look right, you can use a standard text editor to modify it. Specialized tools are not required. You don’t need a separate editor for each kind of data file. One size fits all.




