![]() |
N900: find does not know -exec
I am using Maemo 5, Version 10.2010.19-1 on N900.
When doing a find . -type f -exec grep "somthing" {} \; then I get an error message "find: unrecognized: -exec" Is the find command different on ash? Documentation says that it is the same. |
Re: N900: find does not know -exec
btw. itīs not bash (you can install it) itīs busybox and also you can install find separately IIRC.
|
Re: N900: find does not know -exec
Quote:
|
Re: N900: find does not know -exec
The N900 comes with busybox. Busybox doesn't use the GNU coreutils utilities/commands instead it has watered downed versions with less features. BASH vs ASH is mostly syntax related.
Or simply compile coreutils in scratchbox yourself and copy over the binary find command. Woops find is not part of coreutils but instead findutils. |
Re: N900: find does not know -exec
Thanks.
Does "findutils-gnu v4.4.2-1maemo7" http://maemo.org/downloads/product/M...findutils-gnu/ also do the trick? |
Re: N900: find does not know -exec
That's probably why they put xargs in findutils.
busybox find + xargs = good |
Re: N900: find does not know -exec
Quote:
Quote:
|
Re: N900: find does not know -exec
Xargs is nice.. but... Shell is pretty versatile
Code:
find / -some-options | while IFS="" read file ; do echo "Found file: $file" ; done |
Re: N900: find does not know -exec
Quote:
|
Re: N900: find does not know -exec
Quote:
|
| All times are GMT. The time now is 15:05. |
vBulletin® Version 3.8.8