From ab9d551af4d5e270cb433e999c0d42557eab5c71 Mon Sep 17 00:00:00 2001 From: Christoph Egger Date: Sat, 18 Feb 2017 17:07:50 +0100 Subject: [PATCH] Add porterbox utility --- functions/home/porterbox | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 functions/home/porterbox 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 + -- 2.39.2