Automatically Adding or Removing Files

Especially useful when, for example, versioning /etc/:

Files to remove:

svn stat -q | grep '^!' svn stat -q | grep '^!' | sed -e 's/^!\s*//' | xargs | svn rm

Files to add:

svn stat | grep '^?' svn stat -q | grep '^?' | sed -e 's/^?\s*//' | xargs | svn rm

find . -name 'dpkg-old' -exec rm -i {} \;

 

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>