<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    You can use ${out%% *} to get rid of the additional space.<br>
    <br>
    Patrick<br>
    <br>
    On 07/15/2012 02:25 PM, Brian Wood wrote:
    <blockquote
cite="mid:CABWFOjvxKPeJsBBSGufRJWDLWS79tymUh6cFO-14wYnBzYCdDg@mail.gmail.com"
      type="cite">Here's what I've got now:<br>
      <br>
      out=$(md5sum direct.tar.bz2<br>
      sed "s/sum: [0-9a-f]*/sum: ${out% *}/" ../build_integration.html
      > newfile<br>
      <br>
      That's working except it adds a space after the new checksum.  <br>
      That would be OK if it were just one space, but each time I run <br>
      the script another space is added.  <br clear="all">
      <br>
      <br>
      Brian Wood<br>
      Ebenezer Enterprises<br>
      <a moz-do-not-send="true" href="http://webEbenezer.net"
        target="_blank">http://webEbenezer.net</a><br>
      <br>
      <br>
      <br>
      <br>
      <br>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
<a class="moz-txt-link-abbreviated" href="mailto:tclug-list@mn-linux.org">tclug-list@mn-linux.org</a>
<a class="moz-txt-link-freetext" href="http://mailman.mn-linux.org/mailman/listinfo/tclug-list">http://mailman.mn-linux.org/mailman/listinfo/tclug-list</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>