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

/prog/ random code challenge

Name: Anonymous 2011-03-07 18:36

Write a program that generates random programming code.

Name: Anonymous 2011-03-07 19:08

Feel free to o{ptimis,bfuscat}e this; I'd have done it mostly in awk but I don't know it well enough
#!/bin/sh
o=($(wget -qO- http://dis.4chan.org/prog/subject.txt |shuf |head -1 |awk -F'<>' '{print $5,$4}'))
random -e ${o[1]}
post=$(($?+1))
thid=${o[2]}
wget -qO- http://dis.4chan.org/read/prog/$thid/$post

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