Chapter 3. Work with File Content


This chapter is all about file content and what you can do with it from the Unix command line. The nine projects cover the following topics:

View text files. Learn how to display text files page by page and view them dynamically as they are being written.

View nontext files. View binary and compressed files.

Search files. Say hello to grep and friendsthe Unix equivalent of Spotlight.

Sort and compare files. Unix has some handy utilities to process text files.

Compress files. Discover tar-balls for archiving, and learn how to zip and unzip.

These projects show you how to search the file system for specific content, view files, process them, and compress them. For related projects, see Chapter 4 on Unix text editors, and Chapter 7, which shows how to change file content programmatically.




Mac OS X UNIX 101 Byte-Sized Projects
Mac OS X Unix 101 Byte-Sized Projects
ISBN: 0321374118
EAN: 2147483647
Year: 2003
Pages: 153
Authors: Adrian Mayo

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