home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam    

UNIX Power Tools

UNIX Power ToolsSearch this book
Previous: IV. Looking Inside Files Chapter 25 Next: 25.2 Four Ways to Skin a cat

25. Showing What's in a File

25.1 Cracking the Nut

This chapter talks about the many ways of dumping a file to the screen. Most users know the brute force approach provided by cat (25.2 ) , but there's more to it than that:

  • Pagers like more (25.3 ) and less (25.4 ) that give you more control when looking through long files.

  • Looking at files that are compressed or otherwise unviewable (article 25.5 ).

  • Finding out what type of data a file contains before opening it (article 25.8 ).

  • Adding and deleting blank lines or other white space before displaying a file (articles 25.9 through 25.13 ).

  • Looking at just the beginning or just the end of a file (articles 25.14 through 25.20 ).

  • Numbering lines (article 25.21 ).


Previous: IV. Looking Inside Files UNIX Power Tools Next: 25.2 Four Ways to Skin a cat
IV. Looking Inside Files Book Index 25.2 Four Ways to Skin a cat

The UNIX CD Bookshelf NavigationThe UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System