how to sort based on numbers on column with seperator on bashLinux sort last columnsort a file based on...

Fermat's polygonal number theorem

A man condemned to serve his sentence in other times

Accidental duration in measureless music

What are some non-CS concepts that can be defined using BNF notation?

How do I copy an installed steam game on my PC to an external hard drive?

How to respond to "Why didn't you do a postdoc after your PhD?"

Did Terry Pratchett ever explain the inspiration behind the Luggage?

What is the design rationale for having armor and magic penetration mechanics?

How to treat unhandled exceptions? (Terminate the application vs. Keep it alive)

Is Schrodinger's Cat itself an observer?

Easy way of generating a 50-150W load @12V

What is the gold linker?

What is the most REALISTIC cause of a worldwide catastrophe/apocalypse in the near future? (next ~100 years)

Does my protagonist need to be the most important character?

If I did not sign promotion bonus document, my career would be over. Is this duress?

I got this nail stuck in my tire, should I plug or replace?

Charges from Dollar General have never shown up on my debit card - how to resolve?

What fantasy book has twins (except one's blue) and a cloaked ice bear on the cover?

How do you determine the reach of a Monster's unarmed strikes?

Is it possible to have 2 ports open on SSH with 2 different authentication schemes?

Is it a bad idea to get a PhD?

Does immunity to fear prevent a mummy's Dreadful Glare from paralyzing a character?

Do more Americans want the Bidens investigated than Trump impeached?

How do I get my boyfriend to remove pictures of his ex girlfriend hanging in his apartment?



how to sort based on numbers on column with seperator on bash


Linux sort last columnsort a file based on length of the column/rowsort based on columnsort file based one colum and group by another columnHow to sort multiple column with a column including date?Sort based on different fields and values






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{
margin-bottom:0;
}








0

















how to sort these data by fifth column



PREPAID|085319338982|Replacement Card|2016-05-31 15:15:29|218BKSAT||14121837 | 0
PREPAID|08128352315|Replacement Card|2016-05-31 15:15:33|218KKSAT||14121842 | 0
POSTPAID|085283124329|Replacement Card|2016-05-31 15:15:47|128PDGAT||14121855 | 0
PREPAID|081220000852|Replacement Card|2016-05-31 15:16:06|118GMPAT||14121863 | 0
PREPAID|082210381832|Replacement Card|2016-05-31 15:17:16|218PIMAT||14121912 | 0
POSTPAID|085348838969|Replacement Card|2016-05-31 15:17:22|418BPPAT||14121917 | 0
PREPAID|082132221987|Replacement Card|2016-05-31 18:21:10|328PMRAT||14126628 | 0
PREPAID|08128223567|Replacement Card|2016-05-31 18:22:02|218JBKAT||14126637 | 0
PREPAID|081319486899|Replacement Card|2016-05-31 18:22:52|218BKSAT||14126645 | 0
PREPAID|085207770888|Replacement Card|2016-05-31 18:23:39|118GMPAT||14126649 | 0
PREPAID|081288282777|Replacement Card|2016-05-31 18:24:13|218PIMAT||14126657 | 0
POSTPAID|081324559128|Replacement Card|2016-05-31 18:24:29|228BC2AT||14126660 | 0
PREPAID|08123968211|Replacement Card|2016-05-31 18:25:38|338KUTAT||14126675 | 0
PREPAID|081281623923|Replacement Card|2016-05-31 18:25:45|218JKBAT||14126676 | 0
PREPAID|081333293977|Replacement Card|2016-05-31 18:25:53|328MLGAT||14126679 | 0
POSTPAID|081312544456|Replacement Card|2016-05-31 18:25:56|228BC2AT||14126680 | 0









share|improve this question









New contributor



taufan maulana is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






























    0

















    how to sort these data by fifth column



    PREPAID|085319338982|Replacement Card|2016-05-31 15:15:29|218BKSAT||14121837 | 0
    PREPAID|08128352315|Replacement Card|2016-05-31 15:15:33|218KKSAT||14121842 | 0
    POSTPAID|085283124329|Replacement Card|2016-05-31 15:15:47|128PDGAT||14121855 | 0
    PREPAID|081220000852|Replacement Card|2016-05-31 15:16:06|118GMPAT||14121863 | 0
    PREPAID|082210381832|Replacement Card|2016-05-31 15:17:16|218PIMAT||14121912 | 0
    POSTPAID|085348838969|Replacement Card|2016-05-31 15:17:22|418BPPAT||14121917 | 0
    PREPAID|082132221987|Replacement Card|2016-05-31 18:21:10|328PMRAT||14126628 | 0
    PREPAID|08128223567|Replacement Card|2016-05-31 18:22:02|218JBKAT||14126637 | 0
    PREPAID|081319486899|Replacement Card|2016-05-31 18:22:52|218BKSAT||14126645 | 0
    PREPAID|085207770888|Replacement Card|2016-05-31 18:23:39|118GMPAT||14126649 | 0
    PREPAID|081288282777|Replacement Card|2016-05-31 18:24:13|218PIMAT||14126657 | 0
    POSTPAID|081324559128|Replacement Card|2016-05-31 18:24:29|228BC2AT||14126660 | 0
    PREPAID|08123968211|Replacement Card|2016-05-31 18:25:38|338KUTAT||14126675 | 0
    PREPAID|081281623923|Replacement Card|2016-05-31 18:25:45|218JKBAT||14126676 | 0
    PREPAID|081333293977|Replacement Card|2016-05-31 18:25:53|328MLGAT||14126679 | 0
    POSTPAID|081312544456|Replacement Card|2016-05-31 18:25:56|228BC2AT||14126680 | 0









    share|improve this question









    New contributor



    taufan maulana is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.


























      0












      0








      0








      how to sort these data by fifth column



      PREPAID|085319338982|Replacement Card|2016-05-31 15:15:29|218BKSAT||14121837 | 0
      PREPAID|08128352315|Replacement Card|2016-05-31 15:15:33|218KKSAT||14121842 | 0
      POSTPAID|085283124329|Replacement Card|2016-05-31 15:15:47|128PDGAT||14121855 | 0
      PREPAID|081220000852|Replacement Card|2016-05-31 15:16:06|118GMPAT||14121863 | 0
      PREPAID|082210381832|Replacement Card|2016-05-31 15:17:16|218PIMAT||14121912 | 0
      POSTPAID|085348838969|Replacement Card|2016-05-31 15:17:22|418BPPAT||14121917 | 0
      PREPAID|082132221987|Replacement Card|2016-05-31 18:21:10|328PMRAT||14126628 | 0
      PREPAID|08128223567|Replacement Card|2016-05-31 18:22:02|218JBKAT||14126637 | 0
      PREPAID|081319486899|Replacement Card|2016-05-31 18:22:52|218BKSAT||14126645 | 0
      PREPAID|085207770888|Replacement Card|2016-05-31 18:23:39|118GMPAT||14126649 | 0
      PREPAID|081288282777|Replacement Card|2016-05-31 18:24:13|218PIMAT||14126657 | 0
      POSTPAID|081324559128|Replacement Card|2016-05-31 18:24:29|228BC2AT||14126660 | 0
      PREPAID|08123968211|Replacement Card|2016-05-31 18:25:38|338KUTAT||14126675 | 0
      PREPAID|081281623923|Replacement Card|2016-05-31 18:25:45|218JKBAT||14126676 | 0
      PREPAID|081333293977|Replacement Card|2016-05-31 18:25:53|328MLGAT||14126679 | 0
      POSTPAID|081312544456|Replacement Card|2016-05-31 18:25:56|228BC2AT||14126680 | 0









      share|improve this question









      New contributor



      taufan maulana is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      how to sort these data by fifth column



      PREPAID|085319338982|Replacement Card|2016-05-31 15:15:29|218BKSAT||14121837 | 0
      PREPAID|08128352315|Replacement Card|2016-05-31 15:15:33|218KKSAT||14121842 | 0
      POSTPAID|085283124329|Replacement Card|2016-05-31 15:15:47|128PDGAT||14121855 | 0
      PREPAID|081220000852|Replacement Card|2016-05-31 15:16:06|118GMPAT||14121863 | 0
      PREPAID|082210381832|Replacement Card|2016-05-31 15:17:16|218PIMAT||14121912 | 0
      POSTPAID|085348838969|Replacement Card|2016-05-31 15:17:22|418BPPAT||14121917 | 0
      PREPAID|082132221987|Replacement Card|2016-05-31 18:21:10|328PMRAT||14126628 | 0
      PREPAID|08128223567|Replacement Card|2016-05-31 18:22:02|218JBKAT||14126637 | 0
      PREPAID|081319486899|Replacement Card|2016-05-31 18:22:52|218BKSAT||14126645 | 0
      PREPAID|085207770888|Replacement Card|2016-05-31 18:23:39|118GMPAT||14126649 | 0
      PREPAID|081288282777|Replacement Card|2016-05-31 18:24:13|218PIMAT||14126657 | 0
      POSTPAID|081324559128|Replacement Card|2016-05-31 18:24:29|228BC2AT||14126660 | 0
      PREPAID|08123968211|Replacement Card|2016-05-31 18:25:38|338KUTAT||14126675 | 0
      PREPAID|081281623923|Replacement Card|2016-05-31 18:25:45|218JKBAT||14126676 | 0
      PREPAID|081333293977|Replacement Card|2016-05-31 18:25:53|328MLGAT||14126679 | 0
      POSTPAID|081312544456|Replacement Card|2016-05-31 18:25:56|228BC2AT||14126680 | 0






      shell-script sort data






      share|improve this question









      New contributor



      taufan maulana is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.










      share|improve this question









      New contributor



      taufan maulana is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      share|improve this question




      share|improve this question



      share|improve this question








      edited 4 mins ago









      taliezin

      7,3801 gold badge22 silver badges31 bronze badges




      7,3801 gold badge22 silver badges31 bronze badges






      New contributor



      taufan maulana is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      asked 10 mins ago









      taufan maulanataufan maulana

      1




      1




      New contributor



      taufan maulana is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




      New contributor




      taufan maulana is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.



























          1 Answer
          1






          active

          oldest

          votes


















          2


















          sort -t '|' -k5,5 


          Using | as the field separator, this sorts by the 5th column only.





          share




























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "106"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });







            taufan maulana is a new contributor. Be nice, and check out our Code of Conduct.










            draft saved

            draft discarded
















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f545835%2fhow-to-sort-based-on-numbers-on-column-with-seperator-on-bash%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown


























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            2


















            sort -t '|' -k5,5 


            Using | as the field separator, this sorts by the 5th column only.





            share































              2


















              sort -t '|' -k5,5 


              Using | as the field separator, this sorts by the 5th column only.





              share





























                2














                2










                2









                sort -t '|' -k5,5 


                Using | as the field separator, this sorts by the 5th column only.





                share














                sort -t '|' -k5,5 


                Using | as the field separator, this sorts by the 5th column only.






                share












                share



                share


                share










                answered 2 mins ago









                cascas

                44.5k4 gold badges65 silver badges117 bronze badges




                44.5k4 gold badges65 silver badges117 bronze badges


























                    taufan maulana is a new contributor. Be nice, and check out our Code of Conduct.










                    draft saved

                    draft discarded

















                    taufan maulana is a new contributor. Be nice, and check out our Code of Conduct.













                    taufan maulana is a new contributor. Be nice, and check out our Code of Conduct.












                    taufan maulana is a new contributor. Be nice, and check out our Code of Conduct.
















                    Thanks for contributing an answer to Unix & Linux Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f545835%2fhow-to-sort-based-on-numbers-on-column-with-seperator-on-bash%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown









                    Popular posts from this blog

                    Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

                    Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

                    Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...