我有一个包含太多行的文件。
它的构造如下:
Text
Text
Text
<--!Important Text begins here-->
important Text
Important Text
Important Text
<--!Important Text ends here -->
Unimportant Text
....
<--!Important Text begins here-->
important Text
Important Text
Important Text
<--!Important Text ends here -->
Unimportant Text
....<--!Important Text begins here-->
important Text
Important Text
Important Text
<--!Important Text ends here -->
Unimportant Text
....
等等。
我怎样才能把重要的部分保存在一个新文件中?我正在使用 Macintosh 的仪表板终端