#!/bin/sh # A simple clipboard-to-URL utility using xclip. # Thrown into the public domain by Steve Pomeroy # on 2008-05-05 server="staticfree.info" remote_user="steve" ### end config date=`date '+%Y-%m-%dT%H%M%S'` filename="clip/$date" xclip -o | ssh $server 'cat > ~/public_html/'"$filename.txt" echo -n "http://$server/~$remote_user/$filename"|xclip -i