Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Terry Davis's god in just 7 lines of bash

Name: Anonymous 2018-06-15 18:34

I don't know how many lines of HolyC are required for his program for ``talking to god'' but I can remake it really easily.
#!/bin/bash
echo -n "God says "
numWords=10 #or however long you want it to be
until [ $numWords -lt 1 ]; do
sed `perl -e "print int(rand(99999))"`"q;d" /usr/share/dict/words
let numWords-=1
done

The output doesn't make sense grammatically, but then again, neither does Terry's shit.

Name: Anonymous 2018-06-17 6:17

>>11
perl seems really improfessional, like some old drunk dudes designed it at a pub

https://perlmaven.com/slurp
https://perldoc.perl.org/functions/chomp.html
https://perldoc.perl.org/functions/die.html
https://perldoc.perl.org/functions/dump.html
https://perldoc.perl.org/functions/glob.html

and it's so fucking terse! a 5 byte perl script is like 200 lines of java
if you're obsessed with code golf, I guess it's good by that metric
but for readability, it's awful

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List