• May 19, 2013

Tag Archives: Uniq

October 31, 2011, 3:00 pm

Using the Uniq Command

Not so uniqueLast week Lincoln introduced us to the Command Line; that mysterious place where hackers of the more nefarious kind are usually depicted tearing down the protective walls of the intertubes. As I hope will become clear in this series, which also includes my posting on the sort command last week, anyone who works a lot with files and text have a great deal to gain from building up their command line toolbox. Today we will look at the uniq command (for Linux or Mac OS X users), which can count and remove duplicate lines from a text file.

Consider this real, if dark, example: Sitting in the provincial archives in Shandong province, China reading through a pile of Communist Party Traitor Elimination Bureau reports from the 1940s, I started to keep track of the many different kinds of crimes the cadres were listing their suspects under. Running dogs of Japanese imperalism, Trotskyites,…

Read More

  • 1255 Twenty-Third St, N.W.
  • Washington, D.C. 20037
subscribe today

Get the insight you need for success in academe.