#!/dis/sh

for i in $* {
echo ',s/(^|[^])$/&/g
w
q' | ed $i >/dev/null
}
