This feed contains pages tagged "sed".

Rather than using cut and grep (to find files present locally, but not checked in):

svk status | grep "^\?" | cut -d " " -f 2

You can use awk:

svk status | awk '/^\?/ {print $2;}'

Or sed:

svk status | sed -e '/^?/!d' -e 's/^?\s*//'

Or, just for fun, perl:

svk status | perl -ne 'print $1."\n" if /^\?\s*(.*)/'
Posted Mon 19 Oct 2009 12:44:54 BST Tags: sed

Have a look in the RSS feed from the BBC weather centre:

wget -q -O - http://feeds.bbc.co.uk/weather/feeds/rss/5day/id/1671.xml \
| sed -e '/Sunset/!d'|sed -e 's/^.*Sunset: \(.*\)GMT.*$/\1/' | head -1

Replace 1671.xml with whereever you are.

Posted Mon 19 Oct 2009 12:44:54 BST Tags: sed