In Laymen's Terms
I am reading over a program that was written by a former student, and it has this command:
tr -s ' ' < oldfile | sort -n -k2 > newfile
Which takes a data file and puts it in numerical order, according to the values in the second column, from lowest to greatest. I understand the piping feature, but am wondering if anyone can tell me what the meaning is of:
tr -s ''
-k2 (I assume this means column 2. Does it mean anything else?)