Never been to TextSnippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)

Finding files to be added (See related posts)

svn add `svn st | grep '\?' | tr '\?' ' ' | xargs`

Comments on this post

Jake posts on Mar 21, 2006 at 03:35
I just wanted to add .tex and .pdf files (not .aux or .log etc..) files so I modified the inner grep statement to read:

 grep 'tex\|pdf' 

Notice that I needed to use \| rather than | since the "infix" character alone would be seen as a pipe rather than as an OR statement.

You need to create an account or log in to post comments to this site.

Related Posts