>From 'info Ed', section 'Commands', detailing '(.,.)s': "The 'r' suffix causes the regular expression of the last search to be used instead of *the that* of the last substitution."
Same section, detailing '(1,$)w FILE': "Any previous contents of FILE *is* lost without warning." (should be are) $ ed --version GNU Ed 1.10 -- blah _______________________________________________ bug-ed mailing list bug-ed@gnu.org https://lists.gnu.org/mailman/listinfo/bug-ed