#!/bin/sh # # Usage: plaza command... # # ls | plaza tr '[A-Z]' '[a-z'] # | plaza grep '^[aeiouy]' \ # | plaza sed -r 's/^\([aeiouyAEIOUY]\).*/\\1/' \ # | sort | uniq -c servers() { echo localhost #please change. #echo any.sigkill.dk } randomServer() { servers | sort -R | head -n 1 } if [ $# -eq 0 ]; then echo >&2 "Usage: plaza command..." exit 1 else command="$@" ssh $(randomServer) "$command" fi