Can't run 'find' command
-
sam-y -
March 13, 2022 at 2:20 PM -
Thread is Unresolved
-
- Go to Best Answer
-
you are not using gnu find or regular shell and you do not have coreutils installed. your echo comes from busybox shell and is not available as executable.
Technically 'find /input/path -type f -name "*.mkv" -exec echo {} \;' is the same as 'find /input/path -type f -name "*.mkv"'
-
How can i fix that? How can i run echo in the same way as on every other linux?
-
- Best Answer
How can i fix that? How can i run echo in the same way as on every other linux?
-
How can i fix that? How can i run echo in the same way as on every other linux?
Change your command practices and stop using useless "-exec echo {} \;" argument in find. That's default find output and it does not need -exec echo.
I won't argue about busybox find not supporting -ls, cause I understand that not all environments are equal and I accept it.