Articles in Category "Administration"

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 […]

 GNU find hat keine Option „-older“ …

… aber eine Funktion „-newer“. Die Funktion „-newer“ ist praktisch, um absolute Zeitangaben zum Aufspüren von Dateien zu verwenden. So würde touch -d „2010/1/1″ /tmp/test.newer find . -type f -a -name ‚core.*‘ -a -newer /tmp/test.newer alle regulären Dateien mit „core.“ als Anfang des Dateinamens finden, die neuer sind als der 1. Januar 2010, 00:00 Uhr. […]

 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).

Postfix „postqueue -p“ (print queue) nett formatieren

ist ganz einfach: postqueue -p |    perl -ne ‚       /^[A-F09]+/&&do{          $a=<>; $b=<>;          chomp($_,$a,$b);          $a=~s/[\(\)]//g;          $b=~s/ //g;          $msg=$_.“ to: „.$b.“ message:“.$a;          $msg=~s/[\t ]+/ /g;          print „$msg\n“;       }    ‚