julz wrote:
But since I don`t have bash installed on the NAS, just ash ( I think ), I have to do something like this :
This has nothing to do with the shell. Both find and xargs are busybox commands with a limited number of options.
julz wrote:
Code: Select all
find . -name '*test*' | xargs mv {} /test;
Wouldn't work with a "normal" xargs either. xargs always puts the arguments at the end. Add -t to xargs and you will see that the command you are trying to run is (with a test1 file in the directory),
You would have to add -i for this to work, but there is no -i option in busybox's xargs.
Install Optware and the findutils ipkg package (for find and xargs) and maybe also coreutils for many other shell commands and don't try to use the limited busybox commands, which in some cases are completely broken on the NAS (e.g. the install command).
/Mike