#!/bin/sh
sed -e "s/intermediate/edited/g" <"$1" >"$1-"
mv "$1-" "$1"
exit 0