Use grep with the option -v
to exclude file paths under temp. To make the command safer I would also skip -r
and -f
in the rm
command:
svn status --no-ignore | grep '^?.*\.php$' | grep -v '^? *temp/' | sed 's/^? *//' | xargs rm
CLICK HERE to find out more related problems solutions.