I need to sort a file by multiple columns. There are 12 columns and I need to sort first by column 2, then 11, and lastly 3. The third column should be in reverse order (highest to lowest values). I also want to save the sorted columns to a new document. This is the command I'm using but it's not working:
sort -k 2,2 Filename | sort -k 11,11 | sort -k 3,3 -r -o test_sorting.txt
What should I do differently?