6. Manipulating Files
In This Chapter
Counting Files and Their Contents with wc
Viewing File Beginnings with head
Viewing File Endings with tail
Using Regular Expressions with grep
Using Other Examples of Regular Expressions
Making Global Changes with sed
Finding Differences in Files with diff
Finding Differences in Files with sdiff
Eliminating Duplicates with uniq
As you learned back in Chapter 4, you can easily work with text by opening an editor and making the changes you want. But you can do more than just copy, paste, cut, or move text ...
Get Unix and Linux: Visual Quickstart Guide, Fifth Edition 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.