#!/bin/sh tmpfile=$(mktemp ~/.u2d.XXXXXX) || exit 1 sed 's/$/ /' "$1" >$tmpfile mv -f $tmpfile "$1" && chmod go+r "$1" .