2 # Filename: random-hostname
3 # Purpose: print random hostname to stdout
4 # Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
5 # Bug-Reports: see http://grml.org/bugs/
6 # License: This file is licensed under the GPL v2.
7 ################################################################################
11 randline=$(($(date +%Y%M%S) * $$ % $num))
12 hostname=$(tail -n $randline "$0" | head -1 | grep -v "'" | grep -v '^#' | grep -v '^$')
13 [ -n "$hostname" ] && echo "$hostname" || echo "grml"
14 # EOF - line 15; now the hostnames:
306 rotate-the-shield-harmonics
335 sophistimacated-doowhackey
339 speedholes-or-speed-holes
348 supercalifragilistics