You can use ${out%% *} to get rid of the additional space.

Patrick

On 07/15/2012 02:25 PM, Brian Wood wrote:
> Here's what I've got now:
>
> out=$(md5sum direct.tar.bz2
> sed "s/sum: [0-9a-f]*/sum: ${out% *}/" ../build_integration.html > newfile
>
> That's working except it adds a space after the new checksum.
> That would be OK if it were just one space, but each time I run
> the script another space is added.
>
>
> Brian Wood
> Ebenezer Enterprises
> http://webEbenezer.net
>
>
>
>
>
>
> _______________________________________________
> TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
> tclug-list at mn-linux.org
> http://mailman.mn-linux.org/mailman/listinfo/tclug-list

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.mn-linux.org/pipermail/tclug-list/attachments/20120715/01343b3d/attachment.html>