February 2005 Archives

Sweet bash ssh completion trick

|

Brian McCallister just posted the nicest
bash ssh completion trick
. Check it out:

#!/bin/sh
SSH_COMPLETE=( $(cat ~/.ssh/known_hosts | \
                 cut -f 1 -d ' ' | \
                 sed -e s/,.*//g | \
                 uniq | \
                 egrep -v [0123456789]) )
complete -o default -W "${SSH_COMPLETE[*]}" ssh

Yum!

I've been dreaming of the day svn info will take a repository URL instead of working from a WC. In the meantime, I've
found a cool trick that solves my problem:

$> export URL=http://svn.apache.org/repos/asf/
$> svn log -q -rHEAD $URL \
| head -2 \
| tail -1 \
| awk {'print $1'} \
| sed -e's/r//'

151745

And voila, you can tell the latest revision from a remote repository.

About this Archive

This page is an archive of entries from February 2005 listed from newest to oldest.

June 2004 is the previous archive.

August 2006 is the next archive.

Find recent content on the main index or look in the archives to find all content.

Pages

  • uploaded

June 2008

Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30