Find files recursively that were updated in the last hour ignoring SVN files and folders.

find . -mmin -60 -not -path "*svn*" -print|more
Find files recursively that were updated in the last hour ignoring SVN files and folders. Incase you do a full svn up on accident.

2
By: bloodykis
2009-11-10 18:34:53

What Others Think

another way of doing this is just stopping find from recursing into .svn directories altogether using -prune: find . -mmin -60 -not \( -name .svn -prune \) Also, find will print filenames by default I think so you could leave -print off.
bwoodacre · 629 weeks and 3 days ago
This will prevent valid files that contain 'svn' in the name from being included. Use the tip from bwoodacre about using -prune with a specific name.
arcege · 629 weeks and 3 days ago
What are 'svn' files ?
gromburger · 629 weeks and 2 days ago
find . -mmin -60 | grep -v .svn
kkazakov · 629 weeks and 2 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: