Digitizing Hampshire/Directory2wikitext script

 #!/bin/bash   curl -s 'http://www.hampshire.edu/directory/results.php?page=[0-52]&type=&name=&viewmode=' | egrep '' | sed -r 's%^.*(>Student<|>Staff<|>Faculty<)br>+ %NAME%' | sed -r -e 's%email="%email=none"%' -e 's%|]*>| |||%\n%g' -e 's%%%g' -e 's%Start Year: %Student starting in %' -e 's%\[\[User:none\]\]%n/a%g' -e 's%\[\[User:(.*)\]\]%\1%g' | gawk '{if ($0 ~ /User:/) {print tolower($0)} else {print $0}}' | egrep -v '^ *$' | sed -e 's%NAME%|-%' -e 's%^[^|]%|&%' -e 's%|(%(%' 