skip to main | skip to sidebar

Ben's Computer Blog

I was inspired to write this when enabling the wireless card in Fedora Core 6 on my Dell Latitude D820. This will remedy my unfortunate history of fixing Linux-related problems and not documenting them anywhere. I reserve the right to document other non-Linux issues here as well. I will be glad to field questions, but don't expect too much.

Tuesday, October 13, 2009

Line-by-line Sorting of a list in bash

Take "collab.lis" as the file with the list to sort, and route it to a file called "junk.lis"

less collab.lis | tr "" "\n" | sort > junk.lis

Simple as that.
Posted by bk at 10:01 PM No comments:
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Blog Archive

  • ►  2011 (2)
    • ►  September (1)
    • ►  April (1)
  • ►  2010 (3)
    • ►  March (2)
    • ►  February (1)
  • ▼  2009 (5)
    • ►  December (3)
    • ▼  October (1)
      • Line-by-line Sorting of a list in bash
    • ►  May (1)
  • ►  2008 (3)
    • ►  June (1)
    • ►  May (1)
    • ►  January (1)
  • ►  2007 (8)
    • ►  September (2)
    • ►  August (1)
    • ►  July (5)

About Me

bk
View my complete profile