Hush script to recurse through file system?
Christopher Barry
christopher.barry at rackwareinc.com
Sun Jun 19 16:21:01 UTC 2011
On Sun, 2011-06-19 at 18:06 +0200, Harald Becker wrote:
> Hi!
>
> > Solved the problem through the command line:
> >
> > find /bin -type f -print0 | xargs -0 ./readelf -d
>
> That's right, but you talked about the root filesystem, so the find may
> be modified:
>
> find / -xdev -type f -print0 | ...
>
> This one gives any regular file entry in the rootfs (not digging into
> mounted file systems).
>
> --
> Harald
FYI: This is more efficient than using a pipe:
find / -xdev -type f -exec readelf -d '{}' 2>/dev/null \;
-C
More information about the busybox
mailing list