|
rove script
rove is a bash script I wrote to make it easier to work with directory structures, such as websites. This script will traverse a directory structure and execute a command in each directory.
Source code for rove released under the GPL
rove by Jeff Albro
Usage:
rove [-ce#fils#tvw] start-directory [command]
Options:
-c check command before executing (recommended)
-e# end level (level 0 is the start directory)
-f follow symbolic links
-i interactive (implies -c)
-l leaves only (execute in directories without subdirectories)
-s# start level (level 0 is the start directory)
-t top down (default is bottom up)
-v verbose
-w wood only (execute in directories with subdirectories)
Warning:
Be sure to escape metacharacters such as $<>&|(); with a \ or by
quoting to bypass intial shell evaluation, if desired. Use -c
for pre-confirmation.
Copyright © 2005 - 2007 by Jeff Albro.
All rights reserved.
|