Remove duplicate lines with uniq
Duplicate lines don't often cause a problem, but sometimes they really do. And when they do, there's little need to spend an afternoon working up a filter for them, when the uniq command is at your very fingertips. Find out how it can save you time and headaches.
Sed by example, Part 1
In this series of articles, Daniel Robbins will show you how to
use the very powerful (but often forgotten) UNIX stream editor,
sed. Sed is an ideal tool for batch-editing files or for
creating shell scripts to modify existing files in powerful
ways.
Simplify Data Extraction Using Linux Text Utilities
Much of Linux system administration involves tediously combing through plain-text configuration files. Fortunately, Linux has a rich array of UNIX-derived data extraction utilities, including head, tail, grep, egrep, fgrep, cut, paste, join, awk, and more. This article uses real-world examples that show how these simple command-line programs can make you a better sysadmin. Also look at each data extraction utility and its options, and learn how to apply them to typical day-to-day work files.
Sorting files with sort and tsort
Save time and headaches by using sort and tsort -- instead of resorting to more complex solutions utilizing Perl or Awk. Jacek Artymiak explains how.