X-Git-Url: https://git.siccegge.de//index.cgi?p=dotfiles%2Fzsh.git;a=blobdiff_plain;f=functions%2Fhome%2Fporterbox;fp=functions%2Fhome%2Fporterbox;h=2c6713a4d31e4b81407bb03683318e6db99daadb;hp=0000000000000000000000000000000000000000;hb=ab9d551af4d5e270cb433e999c0d42557eab5c71;hpb=63af345a3f1d5cb94eefa75bf6d372eed6c858ff diff --git a/functions/home/porterbox b/functions/home/porterbox new file mode 100644 index 0000000..2c6713a --- /dev/null +++ b/functions/home/porterbox @@ -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 +