Appending to an Existing File (Unix Power Tools, 3rd Edition)
17.12. Appending to an Existing File
You can use the
Unix redirect and append operator
(>>) with w to append all
or part of the buffer's contents to an existing file. For example, if
you entered:
:1,10w newfile
and then:
$ Section 20.3
:340,$w >>newfile
newfile would contain lines 1-10 and line 340 to
the end of the buffer.
--TOR, from Learning the vi Editor
(O'Reilly, 1998)
17.11. Saving Part of a File17.13. Moving Blocks of Text by Patterns
Copyright © 2003 O'Reilly & Associates. All rights reserved.
Wyszukiwarka
Podobne podstrony:
ch17 (2)ch17 (24)ch17#ch17&ch17ch17CH17 (15)ch17ch17ch17 (9)ch17ch17 (6)ch17CH17ch17ch17(więcej podobnych podstron