David gave me a really cool script for running a webserver when you want to share a specific file.
#share a text file over http at port 8888
function share() {
filename=$1
echo “Sharing the file $filename at http://`hostname`:8888/”
while true ; do nc -l 8888
}