Chapter 7. Working with Text Files on Ubuntu
IN THIS CHAPTER
Using popular editors for Unix-like systems
Using vi
Using emacs
Using the graphical gedit editor
Reviewing other editors for Ubuntu systems
Most of us are used to working with files in various application-specific formats, often identified by their file extension or a special icon on your graphical desktop. We're all familiar with the doc files produced by graphical word processors such as Microsoft Word, pdf files used by Adobe Acrobat and other PDF readers, xls files produced by spreadsheets such as Excel, fm files produced by FrameMaker, ppt files produced by PowerPoint, and so on. All of these files contain application data in a specific, often binary, format that lets the associated application make the best possible use of these files, but which often makes them hard to use with any application other than the one that created them.
At the other end of the spectrum from these application-specific files is the lowest-common-denominator file format known as text files or, to be a bit more specific, ASCII text files. The contents of these files consist of only the standard letters, numbers, punctuation, and symbols that you find on a computer keyboard. The nice thing about these types of files is that they are easy to read, easy to process, and easy to work with in general.
Regardless of what you use your Ubuntu Linux system for, you will almost certainly end up editing a text file one of these days. If you write code, it is ...
Get Ubuntu® Linux® Bible now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.