Find doesn't expand {}

Todd M. Hoff tmh at well.UUCP
Sat Jul 1 11:05:57 AEST 1989


Why doesn't this work:

    find . -type d -print -exec mkdir /xx/yy/zz/{} \;

The '{}' doesn't expand out to the filename like you might
expect. Yet this does work: find . -exec ls {} \;. '{} expands
to the filenames and the files are listed.

Why the difference?

Config: RTs running BSD 4.3.



More information about the Comp.unix.questions mailing list