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

JAVA part II

Name: JAVA 2008-06-23 15:02

JAVA part I:
http://dis.4chan.org/prog/#1

JAVA goes in all fields.

Name: Anonymous 2008-06-23 20:44

#!/bin/sh

mkdir -p ~/prog_archive/res

if which fetch >/dev/null
then
fetch -m -o ~/prog_archive/subject.txt http://dis.4chan.org/prog/subject.txt
get='fetch -m -o ~/prog_archive/res/THREAD http://dis.4chan.org/read/prog/THREAD'
elif which curl >/dev/null
then
curl -o ~/prog_archive/subject.txt http://dis.4chan.org/prog/subject.txt
get='curl -o ~/prog_archive/res/THREAD http://dis.4chan.org/read/prog/THREAD'
elif which wget >/dev/null
then
wget -N -O ~/prog_archive/subject.txt http://dis.4chan.org/prog/subject.txt
get='wget -N -O ~/prog_archive/res/THREAD http://dis.4chan.org/read/prog/THREAD'
elif which lwp-mirror >/dev/null
then
lwp-mirror http://dis.4chan.org/prog/subject.txt ~/prog_archive/subject.txt
get='lwp-mirror http://dis.4chan.org/read/prog/THREAD ~/prog_archive/res/THREAD'
elif which w3m >/dev/null
then
w3m -dump_source http://dis.4chan.org/prog/subject.txt > ~/prog_archive/subject.txt
get='w3m -dump_source http://dis.4chan.org/read/prog/THREAD > ~/prog_archive/res/THREAD'
elif which lynx >/dev/null
then
lynx -source http://dis.4chan.org/prog/subject.txt > ~/prog_archive/subject.txt
get='lynx -source http://dis.4chan.org/read/prog/THREAD > ~/prog_archive/res/THREAD'
elif which links >/dev/null
then
links -source http://dis.4chan.org/prog/subject.txt > ~/prog_archive/subject.txt
get='links -source http://dis.4chan.org/read/prog/THREAD > ~/prog_archive/res/THREAD'
fi

sed -E 's/^.*<>.*<><>([0-9]+)<>.*<><>.*$/\1/' <~/prog_archive/subject.txt | xargs -I THREAD $get

Newer Posts