rm a-file
rm another-file
sed -e '/^rm a-file/ { s@^@# @; a rm another-file }' testfiles/script
echo "This is a script" sleep 1 rm a-file sleep 1; echo "script finished"
Index