[nycbug-talk] sed Question

Kevin Reiter tux at penguinnetwerx.net
Thu Mar 30 20:14:43 EST 2006


*Success*

I put 3 and 3 together and came up with 7.  (OK, so I used large values 
of 3..)

Here's what I found to work:

#!/bin/sh

# Find and use the fastest cvsup server for the ports tree update.

echo "Checking servers..."
echo ""
fastest=`fastest_cvsup -c us | awk '/1st/ {print $3;}'`
echo "The fastest server seems to be $fastest"
echo ""
echo ""
echo "Now, go get some coffee while the tree is updating."
sudo cvsup -h $fastest ports-sup


Thanks everyone for your suggestions.  Now I can get back to learning 
sed and awk so I can one day be a BSD Pro :)



More information about the talk mailing list