-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 This tripped me up recently too, but i found i needed a different patch:
0 aesop:~# diff -u /etc/init.d/xendomains{.orig,} - --- /etc/init.d/xendomains.orig 2007-04-18 12:04:04.000000000 -0400 +++ /etc/init.d/xendomains 2007-04-18 13:00:28.000000000 -0400 @@ -128,9 +128,9 @@ parseln() { - - name=`echo "$1" | cut -c0-17` + name=`echo $1 | cut -d\ -f1` name=${name%% *} - - rest=`echo "$1" | cut -c18- ` + rest=`echo $1 | cut -d\ -f2-` read id mem cpu vcpu state tm < <(echo "$rest") } 1 aesop:~# note that i stripped out the quotes around $1, which lets echo dispose of runs of contiguous spaces. once the contiguous spaces are collapsed, cutting fieldwise works fine. --dkg -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Processed by Mailcrypt 3.5.8+ <http://mailcrypt.sourceforge.net/> iD8DBQFGJoxNiXTlFKVLY2URAtjdAJ0RCY/IIiQohAHIsZ3pZSNX1bNQLgCdEvM3 iuxVRTs3AeGcg/odotkZ8u4= =Mh08 -----END PGP SIGNATURE----- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]