On Sun, Aug 24, 2014 at 11:48:09AM +0100, Richard W.M. Jones wrote:
printf "hash = \"%s\"\n" hash;
printf "sha1 = \"%s\"\n" sha1;
Or even better:
printf "hash = %S\n" hash;
printf "sha1 = %S\n" sha1;
%S (capital S) causes the compiler to print escape sequences for
non-printable characters.
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
Read my programming and virtualization blog:
http://rwmj.wordpress.com
virt-p2v converts physical machines to virtual machines. Boot with a
live CD or over the network (PXE) and turn machines into KVM guests.
http://libguestfs.org/virt-v2v