Articles in Category "GNU/Linux"

Using VIm’s “:v” to Delete All Lines NOT Containing a Pattern

Addendum to my previous post “Using VIm’s “Negative Lookahead” to Delete All Lines NOT Containing a Pattern“ I received a message from a reader who goes by the name of “bw1” who points out that my task “to delete all lines in the current file not containing the string foo” can easily be accomplished by […]

Text-Console Barchart of Storage Utilization

Written as a Bourne Shell-Script that invokes a Perl one-liner: LC_ALL=C df -kPT | perl -ane ‘!/(^Filesystem|tmpfs)/ && do { printf(“%-33s: %s\n”, $F[0], “*” x int((`tput cols`-35) * $F[3] / $F[2])) }’  

Using VIm’s “Negative Lookahead” to Delete All Lines NOT Containing a Pattern

UPDATE: Please note that “bw1” has notified me of a much simpler solution than what is described here; please see “Using VIm’s “:v” Command to Delete All Lines NOT Containing a Pattern“ Some statements have been struck through in the article below because they are false. I want to delete all lines in the current […]

WordPress: Eigene Übersetzungen in Thematic-Child-Themes

Ich habe einige deutschsprachige Textbausteine in meinem Thematic-Child-Theme “linuxfoo” angepasst. Dazu benutze ich eine Datei mit eigenen Übersetzungen auf Basis der “de_DE.po” in “Thematic” selbst und übersetze diese mit dem Gettext-Werkzeug “msgfmt”. Das Verfahren wird nachfolgend im Einzelnen beschrieben.

An OpenOffice/LibreOffice Macro to Colorize Internal References

Since I found no way to assign a character style to all “reference” text fields of a document, to, for example have them colorized blue (indicating that they are links to some other place in the document) I had to write the following OOo BASIC macro to colorize them on the entire document Sub ColorizeInternalReferences […]

 seq24 mit padControl

Mit der in diesem Artikel gezeigten  ~/.seq24rc steuere ich seq24 mit meinem Korg padControl an. Mit qmidiroute habe ich schnell mal bestimmt, welcher Pad auf meinem padControl eigentlich welche note sendet (ja ich weiss, das kann man einstellen, das hier ist nur ein Beispiel für eine ziemlich wirre Belegung): Zeile/Spalte A B C D I […]

 Thumbnails aus allen Bildern im aktuellen Verzeichnis …

… erstellen und daraus HTML mit einer 3-spaltigen Tabelle machen.

An Introduction to the VI Text Editor

A Google/YouTube Series of Screencasts about VI (classic version).