fix md5sum sum for filenames with spaces
On Tue, Jul 31, 2007 at 11:15:06AM -0400, Jesse W. Hathaway wrote:
> small patch to fix the md5sums when searching for files
> with spaces in their names
>
> +find . -type f -print0 | sort -z | grep -z -v 'isolinux/isolinux.bin' \
> + | grep -z -v 'boot/grub/stage2_eltorito' \
> + | xargs -0 md5sum > ../md5sum.txt
Two observations FYI. Firstly, recent copies of GNU find (at least
Etch onwards) support -exec {} +, e.g.
find -type f -exec md5sum {} +
instead of
find -type f -print0 | xargs -0 md5sum
Secondly, if you place the pipe operator at the end of a line instead
of the start, you can avoid the icky continuation lines, e.g.
aptitude search ~i -F %p |
fmt
instead of
aptitude search ~i -F %p \
| fmt
Have a nice day.
--
Trent W. Buck
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/debian-live-devel/attachments/20070801/90f03848/attachment.pgp
Reply to: