This feed contains pages tagged "grep".

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: grep