## <pre> 
#  walk [ command args ]
# traverse the directory tree starting at cwd and do command in
# each dir. Much slower than find, but much simpler to use, and 
# of course, to modify.
# Also included in cLIeNUX as an example of recursion in sh.


walk () {
    local f
    top_args=$*
    for f in *
    do
        if test -d $f -a ! -L $f; then
            cd $f
            walk $top_args
            cd ../
        fi
    done
    $top_args
}



walk $*


## Copyright 2000 Rick Hohensee
