3 ms·
`awk` is not needed since `sort` can apply to the fourth column. curl ... \ | sort -t, -k4 -n | less
by idoubtit 7y ago
`awk` is not needed since `sort` can apply to the fourth column.
curl ... \
| sort -t, -k4 -n
| less
- ColinWright 7y agoThat's true, but the solution I suggested works to sort on the last column, whether or not there are exactly 4 columns. I avoided having to count how many columns there are, assuming only that the date comes last. But yes, if you know the date is in the 4th column then your solution also works.