Download presentation
Presentation is loading. Please wait.
Published byOsborn Charles Modified over 9 years ago
1
Chapter 5 Editing Text Files
2
Basic Concept A text editor works on a file buffer that is a memory copy of a disk file The disk file is not updated until we save the memory buffer Common UNIX text editors – ed – pico – vi – emacs, ue, XEmacs, emacs21
3
Table 5.1 Common Functions of LINUX Text Editors A text editor works on a file buffer that is a memory copy of a disk file Usually the disk file is not updated until we save the memory buffer
4
Figure 5.1 First pico screen display
5
Figure 5.2 Saving a file with a name in pico
6
Table 5.2 Keystroke Commands and Their Actions in pico
7
Table 5.3 Important Cursor Movement Keystroke Commands in pico
8
Figure 5.3 Cut and pasted linespaced text in pico
9
Figure 5.4 LINUX vi screen with example script file
10
Figure 5.5 Operating modes of the vi text editor
11
Figure 5.6 The vi start-up screen
12
Table 5.4 Examples of vi Command Syntax
13
Table 5.5 Important Keys for the Insert Mode
14
Table 5.6 Important Commands for the Command Mode
15
Figure 5.7 Saved file firstvi
16
Figure 5.8 Final form of file firstvi
17
Table 5.7 Cursor movement and Keyboard Editing Commands
18
Table 5.8 Examples of the Syntax for the yank and put Commands
19
Table 5.9 Examples of the Syntax for the substitute Command
20
Table 5.10 Important Environment Options for vi
21
Figure 5.9 First emacs screen display
22
Table 5.11 Important emacs Commands
23
Table 5.12 Important emacs Cursor Movement and Editing Commands
24
Figure 5.10 The emacs display of the file alien
25
Figure 5.11 The file alien2 after the buffer contents have been saved
26
Table 5.13 Important Keyboard Macro Commands
27
Figure 5.12 The file datafile with 10 rows of data
28
Table 5.14 Important emacs Kill and Yank Commands
29
Table 5.15 Interactive Search and Replace Actions
30
Figure 5.13 The layout of the first XEmacs screen display
31
Figure 5.14 Initial display of datafile in XEmacs
32
Table 5.16 XEmacs Pull-Down Menu Choices Described
33
Table 5.17 XEmacs Toolbar Button Descriptions
34
Figure 5.15 File alien after being edited in XEmacs
35
Table 5.18 Important Readline Variables
36
Table 5.19 Commonly Used Bindable Readline Commands
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.