30.11 Keep Your Original File, Write to a New FileYou can use Suppose you have a file practice , containing 600 lines. You open the file and make extensive edits. You want to quit but save both the old version of practice and your new edits for comparison. To save the edited buffer in a file called check_me , give the command:
Your old version, in the file practice
, remains unchanged
(provided that you didn't previously use - from O'Reilly & Associates' Learning the vi Editor , Chapter 5 |
|