[CentOS] script help

Fri Nov 2 13:48:58 UTC 2007
Michael D. Kralka <michael.kralka at kvs.com>

Ross S. W. Walker wrote:
> 
> Try:
> 
> # find <parent dir> -type d -name dir-192.168.\* -exec mv \{\} `echo
> \{\} | sed 's/192\.168\./10\.0\./'` \;
> 
> That should recursively rename all directories from one naming scheme to
> another.

... except for the fact that the `echo \{\} ...` will be evaluated by
the shell and not find, so this is the same as:

find <parent dir> -type d -name dir-192.168.\* -exec mv \{\} \{\} \;

Not very useful ;)

Cheers,
Michael