Nevermind. I ended up figuring it out. Granted it's not for BB, but
just as a follow-up if anyone comes across this thread they will have
what I came up with:
find /tmp/test -type f \( -name \*.typelib -o -name \*.gir \) -exec
/bin/sh -c 'TEMP="${1#*/}"; mkdir -p "${0}/${TEMP%/*}" 2>/dev/null;
Oops! It does appear that I was using GNU find, not BB. Sorry about
that. Any thoughts on how this can be done without execdir then using
BB find?
Thanks,
Dave
On 7/14/17, Denys Vlasenko wrote:
> On Thu, Jul 13, 2017 at 11:52 PM, David Henderson
>
On Thu, Jul 13, 2017 at 11:52 PM, David Henderson
wrote:
> Good evening all! I am trying to move files from one location to
> another while preserving the path. If I search for a directory, it
> seems like I have found the correct syntax:
>
> find
Good evening all! I am trying to move files from one location to
another while preserving the path. If I search for a directory, it
seems like I have found the correct syntax:
find "/usr/local/share/man" -type d -execdir mv -- {} "/opt/test" \;
However, if I try to move files, I can't seem to