[CentOS] script help
Michael D. Kralka
michael.kralka at kvs.comFri Nov 2 13:48:58 UTC 2007
- Previous message: [CentOS] script help
- Next message: [CentOS] script help
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [CentOS] script help
- Next message: [CentOS] script help
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list