Exercise 41: Zebb Jewels


The changes can be made using any number of editors. Among those SLES 9 includes are joe, vi, and sed. Figure 4.42 shows joe editing a file, whereas Figure 4.43 shows the same file in vi.

Figure 4.42. Editing a file with joe.


Figure 4.43. Editing a file with vi.


The best editor to use for this task, however, is sed. As a stream editor, it can easily change all occurrences of one value for another using the command

 sed 's/ZEBB7/JEWEL/g' 

TIP

For more on sed, enter man sed.




NovellR Linux Certification Practium Lab Manual
NovellR Linux Certification Practium Lab Manual
ISBN: N/A
EAN: N/A
Year: 2004
Pages: 192

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net