#!/bin/sh # ssh://git.mdcc.cx/git/ad1810-stuff.git # for h in $( a1-allehosts | grep RH | while read h r; do echo $h; done ) ; do echo -n "$h "; ssh root@$h rpm -q uruk; done > /tmp/uruk-rpm.txt # for h in $( a1-allehosts | grep ee | while read h r; do echo $h; done ) ; do ssh root@$h dpkg-query -W -f='\$\{Version\}' uruk; echo " $h"; done > /tmp/uruk.txt # grep -v ',uit ' ~/svn/its-unix/doc/hosts.txt | egrep -v '^#|^$' | \ egrep -v '^#|^$' ~/svn/its-unix/doc/hosts.txt | \ while read a b c d e f g; do echo "$a $b $e $f $g" done