Chapter 9
13
Chapter 9 Basic File Processing
-
Upload
xandra-hamilton -
Category
Documents
-
view
12 -
download
0
description
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. - PowerPoint PPT Presentation
Transcript of Chapter 9
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
Removing Repeated Lines
• uniq command• Intended for use on sorted files• Produces an output file with only one copy of
any repeated consecutive lines