Hi, I have used the following code to sort two sets of data:
awk '{printf "%10s %s\n",$1,$2}'
The first column is text and the second involves numbers. I was just wondering how i would go about sorting the second number so that they ascend from the top?
Sorry, I miss typed, was quite late at nigh -_-. I meant to ask how would I go about sorting the second column of data (which are numbers) in ascending order.
I currently haven't sorted any data. I can sort the first set of data quite simply by adding a " | sort" at the end of the pipe, but by default this sorts the first column, but i want to sort the second.