bash - recursive directory svn move shell script -


I want to rename all nested directories named "foo" for "bar" - I do the following fun Have tried:

  search * / -name 'foo' | Xargs svn move {} 'bar' \;  

thanks

to move each Foo will try to pwd / bar and pass svn move lots of logic. Here's what I'll do:

  find -depth -type d -name 'foo' -print | While reading; Do echo svn mv $ REPLY `dirname $ REPLY` / bar; Done  

You can actually remove echo to perform the operation. The above works under this assumption that you do not have free space in file names.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -