[Discuss] bash problem

David Bronaugh dbronaugh at linuxboxen.org
Fri Aug 17 10:52:39 PDT 2007


pw wrote:
> #!/bin/bash
>
> export START=`pwd`
>
> for DIR in `find -type d`; do
>     cd $DIR;
>     cd $START;
> done
>
> #END IF SCRIPT
>
Why not find . -type d -exec "stuff"?

David


More information about the Discuss mailing list