initial checkin
[grml-scripts.git] / usr_bin / random-hostname
1 #!/bin/sh
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 Sep 30 11:42:30 CEST 2006 [mika]
8 ################################################################################
9 num=$(wc -l $0)
10 num=${num%% $0}
11 num=$(( $num - 16 ))
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:
16 hostnames='
17 23
18 42
19 ackbar
20 agamemnon
21 alderaan
22 alphacentauri
23 anakin
24 antares
25 apfel
26 aphrodite
27 archill
28 argl
29 argon
30 auge
31 avoision
32 a-wizard-did-it
33 awk
34 baby
35 bane
36 banjologist
37 bar
38 barnards
39 barteldan
40 bartesque
41 bartwisch
42 basegame
43 bbbq
44 beginulate
45 beheadbumped
46 bespin
47 beta
48 beteigeuze
49 bethselamin
50 bielefeld
51 billiboy
52 binkel
53 bitch
54 blackbush
55 blingwad
56 boba
57 bonus-eruptus
58 boo-urns
59 bottom
60 bovine-university
61 brain-medicine
62 brassafrax
63 brett
64 bsdkiller
65 bughunter
66 butler
67 c-3po
68 calisto
69 capdabbler
70 car-hole
71 celibacy
72 charm
73 chazzwozzers
74 chestal
75 chewbacca
76 chocotastic
77 cholera
78 clouseauesque
79 cody
80 commie-nazis
81 connemara
82 corellia
83 coruscant
84 cragganmore
85 crantastic
86 crap-factory
87 craptacular
88 cray
89 crisitunity
90 cromulent
91 crotch-dot
92 dagobah
93 dalwhinnie
94 damogran
95 dantooine
96 darth
97 darthsidious
98 darthvader
99 dash-hole
100 debilian
101 debsauber
102 deceleratrix
103 dickety
104 diddly
105 diefront
106 dingens
107 dings
108 dingsbums
109 doctorb
110 dodge
111 dodgerock
112 doesntexist
113 dogma
114 doh
115 dooku
116 down
117 drunkening
118 dumbening
119 duro
120 eadrax
121 electromicide
122 embiggen
123 eprouvette
124 erde
125 erotikon
126 error
127 fantastipotamus
128 farkbot
129 faxtrola
130 fehlstart
131 find
132 fischvergiftung
133 flanswered
134 flauschig
135 floor-pie
136 flunjer
137 foo
138 foodbag
139 foodrinkery
140 forfty
141 frinkahedron
142 frogurt
143 froschstern
144 fscking
145 fuchsiatard
146 fudrucker
147 fuss
148 g3nt00
149 gamblor
150 garbagewater
151 gegruemmelt
152 gelbescheibe
153 geonosis
154 gewusel
155 gibby-gabby
156 glaven
157 golatsche
158 golgafrincham
159 greedo
160 grievous
161 grmled
162 grmlegg
163 grmlei
164 guglhupf
165 ham-in-a-can
166 hansolo
167 harem
168 hedge
169 hektor
170 helium
171 hera
172 herakles
173 herpes
174 herz
175 homersexual
176 hoth
177 hoyvin-mayvin
178 hypohemia
179 ilum
180 introubulate
181 jabba
182 jacen
183 jaina
184 jango
185 jebeditis
186 jebus
187 jiminy-jillikers
188 jumping-box
189 jupiter
190 kamino
191 kashyyyk
192 kidnappophilie
193 kilbeggan
194 killbot-factory
195 knifey-spooney
196 knowitallism
197 knowledgeum
198 kollateralschaden
199 korriban
200 krautundrueben
201 krikkit
202 krypton
203 kukuruz
204 kwyjibo
205 lagavulin
206 lamuella
207 land-cow
208 lart
209 lasagne
210 liberty-log
211 lima
212 localhorst
213 lochnagar
214 lunge
215 lupper
216 macallan
217 magno
218 magrathea
219 malak
220 malparkage
221 manaan
222 master
223 maximegalon
224 mazuma
225 megacide
226 mehlmuehle
227 melange
228 menapplause
229 milliways
230 minor
231 minuteman
232 money-fight
233 monster
234 mund
235 musikapparat
236 mustafar
237 mygeeto
238 naboo
239 nase
240 neglecterino
241 neighborino
242 neon
243 niere
244 nucleon
245 nuisancefon
246 nulecule
247 nutty-fudgekins
248 oban
249 obiwankenobi
250 odysseus
251 oglarun
252 ohr
253 okely-dokely
254 omega
255 omfg
256 onderon
257 onetuplet
258 oops
259 ossus
260 ovulicious
261 palpatine
262 panaka
263 panchito
264 panic
265 paradigma
266 paranoia
267 paris
268 persephone
269 phonon
270 photon
271 pizza
272 plagueis
273 plasmon
274 pointy-kitty
275 popocatepetl
276 porridge
277 postefix
278 posturologists
279 praesitlyn
280 preliumtarn
281 presbylutheran
282 pricetaggery
283 pull-a-homer
284 pusteblume
285 pustefix
286 quantum-tunnel
287 quetzlzacatenango
288 quinlan
289 r2-d2
290 radon
291 rageohol
292 rastafy
293 raunzer
294 raytheist
295 rear-admiral
296 rechengnom
297 re-dorkulated
298 retirony
299 revan
300 reverse-vampires
301 reversifying-glass
302 rhadamanthys
303 rinderwahnsinn
304 ronzer
305 rotate-the-shield-harmonics
306 rtfm
307 rupert
308 sacrilicious
309 saturn
310 saubaua
311 saxamaphone
312 schwipps
313 science-pole
314 scientician
315 scp
316 scponly
317 scrod-basket
318 sebulba
319 sed
320 shanagary
321 shinning
322 shirkaday
323 shirt-wiener
324 shiva-h.-vishnu
325 sisterectomy
326 skywalker
327 smashy-smashy
328 smeckler
329 smendler
330 smokesperson
331 snacktacular
332 solo
333 sonne
334 sophistimacated-doowhackey
335 soulianis
336 spaghettimonster
337 spambox
338 speedholes-or-speed-holes
339 spokesrebel
340 ssh
341 stabby
342 steamed-hams
343 sterz
344 stillroot
345 successmanship
346 supercalifragilistics
347 superliminal
348 swedish-lunchbox
349 swishifying
350 sync
351 syphilis
352 talisker
353 talon
354 taris
355 tasty-fake
356 tatooine
357 telepanhandling
358 telos
359 thinkgeek
360 thrawn
361 throughhole
362 thule
363 tomacco
364 tomorry
365 top
366 traumedy
367 trebor
368 tromboner
369 tsykolon
370 ulic
371 unblowuppable
372 unfaceuptoable
373 unpossible
374 up
375 uppity-box
376 ursa
377 utapau
378 velocitator
379 vi
380 viltvodl
381 vim
382 vista
383 vogsphere
384 volleybrick
385 walking-bird
386 wassissn
387 watto
388 wiggle-puppy
389 wildwuchs
390 woozle-wuzzle
391 word-hole
392 wurmloch
393 xenon
394 yaddle
395 yellodisk
396 yellow-fatty-beans
397 yoda
398 yoink
399 ysolldins
400 zazz
401 zeus
402 zicke
403 zuh
404 '