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.

No comments: