One thing you must be careful of is that the substitute
command does not know about word boundaries. It will
change the first occurrence of a letter string it matches
without regard to blanks or punctuation around it. Thus,
i would rather be the king
Right? You should always print lines after changing them
to avoid missing such errors. You can defend against them
by increasing the amount of context you specify; in this
case, for example, you could say
Often the "$" operator is useful here, if you want to
change the last thing on the line. In the file 'text',
never, never, never, never, never
Edit this file to make the third line read
never, never, never, never, or hardly ever
Rewrite the file and type "ready".
why should a dog, a horse, a rat, have life,
and thou no breath at all? thou'lt come no more,
never, never, never, never, or hardly ever
pray you, undo this button. thank you, sir.
why should a dog, a horse, a rat, have life,
and thou no breath at all? thou'lt come no more,
never, never, never, never, never
pray you, undo this button. thank you, sir.