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 # Latest change: Sam Dez 02 20:30:20 CET 2006 [mika]
8 ################################################################################
12 randline=$(($(date +%Y%M%S) * $$ % $num))
13 hostname=$(tail -n $randline "$0" | head -1 | grep -v "'" | grep -v '^#' | grep -v '^$')
14 [ -n "$hostname" ] && echo "$hostname" || echo "grml"
15 # EOF - line 15; now the hostnames:
307 rotate-the-shield-harmonics
336 sophistimacated-doowhackey
340 speedholes-or-speed-holes
349 supercalifragilistics