]> git.siccegge.de Git - dotfiles/zsh.git/commitdiff
Add porterbox utility
authorChristoph Egger <christoph@christoph-egger.org>
Sat, 18 Feb 2017 16:07:50 +0000 (17:07 +0100)
committerChristoph Egger <christoph@christoph-egger.org>
Sat, 18 Feb 2017 16:08:49 +0000 (17:08 +0100)
functions/home/porterbox [new file with mode: 0644]

diff --git a/functions/home/porterbox b/functions/home/porterbox
new file mode 100644 (file)
index 0000000..2c6713a
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/zsh
+
+ldapsearch -h db.debian.org -x -b dc=debian,dc=org 'purpose=porterbox'  hostname architecture -LLL | egrep 'hostname|architecture|^$' | awk '$1 == "architecture:" { a = $2}; $1 == "hostname:" { h = $2}; !NF && h ~ /debi/ {printf "%-20s %s\n", h, a; a=""; h=""} ' | sort
+