how do you write a shell script in centos?

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.

Leave a Comment

Your email address will not be published.

Scroll to Top