LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs > ciotog
User Name
Password

Notices


Rate this Entry

svn delete huge tree but leave modified files

Posted 03-06-2009 at 04:31 PM by ciotog

In one of our projects at work, the entire kernel source tree was added to an svn repository. I needed a simple way to delete all the files that were unchanged from the original source, and came up with the following:
Code:
diff -r -s kernel/linux-2.6.12 src/kernel-2.6 | grep identical | perl -e 'while (<>) { ($Files, $fname) = split ; `svn del $fname` };'
Confession: yes, I was the one that added the kernel source
Posted in Uncategorized
Views 1925 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 03:20 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration