Q: Mycalls ed to edit a set of files:
On an error - including "no matches" -
discard any unread commands. If you are running
this has no effect, but if its input is from a file, this makes
EOF -d-of-file) the next thing it sees. You could remove the
There is a simple workaround. Unlike the
ed - $i << end g/pat1/s//$site/g g/pat2/s//$cmty/g w end
(dash) flag suppresses the two numbers
normally prints when reading and writing files.
These are the number of characters in the file,
and are usually irrelevant.
[As Chris explained, the
- in comp.unix.questions on Usenet, 16 May 1989