Kindly Help regarding sorting a file rows

Dear All,

I have a file name exporting.txt. Below is the content.

$ cat exporting.txt
. . exporting table                         DT_BCD                         63716            rows     exported
. . exporting table                         DT_CVD                         36321            rows     exported
. . exporting table                        DT_NOTN                       1588              rows     exported
. . exporting table                   DT_NOTN_SLNO     168769          rows     exported
. . exporting table                         DT_RSP                            6103              rows     exported
. . exporting table                         DT_NCD                    147                rows      exported
. . exporting table                    DT_ANTIDUMP           118608           rows     exported
. . exporting table                     D_CNTRY_CD                  244                rows     exported

I want to sort the rows of the rows according to the numeric column (6th) in ascending order.

Kindly Help.

Thanks
Bhaskar

sort -nrk6
1 Like

Thanks a lot. It's Working. :):slight_smile: