1 / 13

Chapter 9

Chapter 9. Basic File Processing. Displaying File Contents. cat, cat w/append tac nl pr more less head tail. Table 9.1 Some Useful less Commands. Table 9.1 More less Commands. File Location Commands. cp mv ln rm mkdir rmdir.

Télécharger la présentation

Chapter 9

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Chapter 9 Basic File Processing

  2. Displaying File Contents • cat, cat w/append • tac • nl • pr • more • less • head • tail

  3. Table 9.1 Some Useful less Commands

  4. Table 9.1 More less Commands

  5. File Location Commands • cp • mv • ln • rm • mkdir • rmdir

  6. Figure 9.1  Current directory before and after command cp temp temp.bak

  7. Figure 9.2 Current directory before and after command mv temp backups/temp.old

  8. Figure 9.3  Current directory before and after command rm temp backups/temp.old

  9. File Statistics Commands • ls –l • wc

  10. Comparing Files • cmp, zcmp • diff, zdiff • Output is a set of commands that can be used with the ed (or vi) editor to convert the first file into the second file • Often used to send out upgrades

  11. Table 9.2 File Conversion Instructions Produced by diff

  12. Removing Repeated Lines • uniq command • Intended for use on sorted files • Produces an output file with only one copy of any repeated consecutive lines

  13. Table 9.3 Printing

More Related