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 ################################################################################
8 hostname_start=$(grep -n "^# EOF" "$0")
9 hostname_start=${hostname_start%%:#*}
10 hostname_start=$(( hostname_start + 3 ))
11 hostname=$(tail -n +$hostname_start "$0" | grep -v "'" | grep -v '^#' | grep -v '^$' | sort -R | tail -1)
12 [ -n "$hostname" ] && echo "$hostname" || echo "grml"
13 # EOF - now the hostnames:
14 # shellcheck disable=SC2034
306 rotate-the-shield-harmonics
335 sophistimacated-doowhackey
339 speedholes-or-speed-holes
348 supercalifragilistics