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 […]
Articles in Category "Administration"
Using VIm’s “Negative Lookahead” to Delete All Lines NOT Containing a Pattern
7. Januar 2015 in Administration, GNU/Linux, Programming, Technology.
Thumbnails aus allen Bildern im aktuellen Verzeichnis …
27. April 2014 in Administration, GNU/Linux, Multimedia, Programming.
An Introduction to the VI Text Editor
16. Juli 2011 in Administration, GNU/Linux, Multimedia, Programming.
A Google/YouTube Series of Screencasts about VI (classic version).
Postfix “postqueue -p” (print queue) nett formatieren
11. Januar 2015 in Administration, Programming.
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”; } ‘