On Mon, Mar 17, 2008 at 03:52:23PM +0100, Julian Andres Klode wrote:

> find . -type f \! -name 'isolinux/isolinux.bin' \! -name
> 'boot/grub/stage2_eltorito' -print0 | xargs -0 md5sum >
> ../md5sum.txt

For recent (post-oldstable?) versions of findutils, you can use the
Single Unix Standard switch -exec {} +, for example:

    find >../md5sum.txt \
      -type f \
      -not -name isolinux/isolinux.bin \
      -not -name boot/grub/stage2_eltorito \
      -exec md5sum {} +

Ref. http://www.opengroup.org/onlinepubs/009695399/utilities/find.html

> The option -e of echo is not part of the POSIX standard, but provided by 
> bash's
> echo, ksh's echo and /bin/echo.

IIRC the Debian Policy requires /bin/sh to support echo -n, but not
echo -e.  If you want echo's -e switch, use /bin/echo.

You can use the posh and dash packages to test for sh compliance.

Attachment: signature.asc
Description: Digital signature

Reply via email to