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
signature.asc
Description: Digital signature
_______________________________________________ debian-live-devel mailing list [email protected] http://lists.alioth.debian.org/mailman/listinfo/debian-live-devel

