How to sort a file based on field postion?
For eg. I need to sort the below given file. Based on 4th,5th and 8th positions. Please help. I tried the following command, its not working :(
sort -d -k 3.42,44 -k 4.47,57 -k 5.59,70 -k 8.73,82
010835 03 0000000010604CAQZ 0912104072 QNZAW AZ ATC 1704698441
010835 03 0000000010604CZWX 7823775785 WDXSD GZ DDF 2804698441
010835 03 0000000010604CBEC 8737518498 DICDC CY HWT 0904698441
010835 03 0000000010604CERV 5648240160 FFVFV DZ UXE 8404698441
010835 03 0000000010604CTTV 2555338251 TTBGB FZ EZS 9504698441
010835 03 0000000010604CADB 1465045344 BINHH TZ QKZ 4604698441
010835 03 0000000010604CIFN 2374902637 NOMJU VZ XHU 6704698441
010835 03 0000000010604COGM 3281553523 JSLKI YZ CLK 5804698441
010835 03 0000000010604CPCL 4190899186 PQJLL QZ UPL 3004698441