Alpine version-sort

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












0















How to do sort -V in alpine linux?



sort: unrecognized option: V
BusyBox v1.28.4 (2018-12-06 15:13:21 UTC) multi-call binary.

Usage: sort [-nrugMcszbdfiokt] [-o FILE] [-k start[.offset][opts][,end[.offset][opts]] [-t CHAR] [FILE]...

Sort lines of text

-o FILE Output to FILE
-c Check whether input is sorted
-b Ignore leading blanks
-f Ignore case
-i Ignore unprintable characters
-d Dictionary order (blank or alphanumeric only)
-g General numerical sort
-M Sort month
-n Sort numbers
-t CHAR Field separator
-k N[,M] Sort by Nth field
-r Reverse sort order
-s Stable (don't sort ties alphabetically)
-u Suppress duplicate lines
-z Lines are terminated by NUL, not newline









share|improve this question

















  • 1





    Can you apk add coreutils to get GNU sort?

    – Jeff Schaller
    Jan 29 at 13:30











  • coreutils solved my issue, thanks!

    – Rex Lam
    Jan 30 at 1:12















0















How to do sort -V in alpine linux?



sort: unrecognized option: V
BusyBox v1.28.4 (2018-12-06 15:13:21 UTC) multi-call binary.

Usage: sort [-nrugMcszbdfiokt] [-o FILE] [-k start[.offset][opts][,end[.offset][opts]] [-t CHAR] [FILE]...

Sort lines of text

-o FILE Output to FILE
-c Check whether input is sorted
-b Ignore leading blanks
-f Ignore case
-i Ignore unprintable characters
-d Dictionary order (blank or alphanumeric only)
-g General numerical sort
-M Sort month
-n Sort numbers
-t CHAR Field separator
-k N[,M] Sort by Nth field
-r Reverse sort order
-s Stable (don't sort ties alphabetically)
-u Suppress duplicate lines
-z Lines are terminated by NUL, not newline









share|improve this question

















  • 1





    Can you apk add coreutils to get GNU sort?

    – Jeff Schaller
    Jan 29 at 13:30











  • coreutils solved my issue, thanks!

    – Rex Lam
    Jan 30 at 1:12













0












0








0








How to do sort -V in alpine linux?



sort: unrecognized option: V
BusyBox v1.28.4 (2018-12-06 15:13:21 UTC) multi-call binary.

Usage: sort [-nrugMcszbdfiokt] [-o FILE] [-k start[.offset][opts][,end[.offset][opts]] [-t CHAR] [FILE]...

Sort lines of text

-o FILE Output to FILE
-c Check whether input is sorted
-b Ignore leading blanks
-f Ignore case
-i Ignore unprintable characters
-d Dictionary order (blank or alphanumeric only)
-g General numerical sort
-M Sort month
-n Sort numbers
-t CHAR Field separator
-k N[,M] Sort by Nth field
-r Reverse sort order
-s Stable (don't sort ties alphabetically)
-u Suppress duplicate lines
-z Lines are terminated by NUL, not newline









share|improve this question














How to do sort -V in alpine linux?



sort: unrecognized option: V
BusyBox v1.28.4 (2018-12-06 15:13:21 UTC) multi-call binary.

Usage: sort [-nrugMcszbdfiokt] [-o FILE] [-k start[.offset][opts][,end[.offset][opts]] [-t CHAR] [FILE]...

Sort lines of text

-o FILE Output to FILE
-c Check whether input is sorted
-b Ignore leading blanks
-f Ignore case
-i Ignore unprintable characters
-d Dictionary order (blank or alphanumeric only)
-g General numerical sort
-M Sort month
-n Sort numbers
-t CHAR Field separator
-k N[,M] Sort by Nth field
-r Reverse sort order
-s Stable (don't sort ties alphabetically)
-u Suppress duplicate lines
-z Lines are terminated by NUL, not newline






sort alpine-linux






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 29 at 9:47









Rex LamRex Lam

1031




1031







  • 1





    Can you apk add coreutils to get GNU sort?

    – Jeff Schaller
    Jan 29 at 13:30











  • coreutils solved my issue, thanks!

    – Rex Lam
    Jan 30 at 1:12












  • 1





    Can you apk add coreutils to get GNU sort?

    – Jeff Schaller
    Jan 29 at 13:30











  • coreutils solved my issue, thanks!

    – Rex Lam
    Jan 30 at 1:12







1




1





Can you apk add coreutils to get GNU sort?

– Jeff Schaller
Jan 29 at 13:30





Can you apk add coreutils to get GNU sort?

– Jeff Schaller
Jan 29 at 13:30













coreutils solved my issue, thanks!

– Rex Lam
Jan 30 at 1:12





coreutils solved my issue, thanks!

– Rex Lam
Jan 30 at 1:12










2 Answers
2






active

oldest

votes


















1














With Alpine, you can add GNU sort via the coreutils package:



apk add coreutils





share|improve this answer






























    0














    In alpine, sort - V (version) is not supported.



    Bear in mind that it's the busybox version and not the coreutis sort version.



    Such is the price to pay to have a very light distribution.



    Note that you can always add compiled binaries and glibc itself to alpine, or even static linked j binaries, but once you start doing that, you are adding more substantial size to it.






    share|improve this answer























    • There is also posts about how to working around not having sort here, I am in my the tube now, cannot get links

      – Rui F Ribeiro
      Jan 29 at 10:09











    • I installed coreutils instead of out of the box one, and it works

      – Rex Lam
      Jan 30 at 1:12











    • Yeah, it works adding it, though I am no alpine user. The point is that coreutils is big. If you keep adding size to alpine, it comes to a point where it could make more sense using a cut down image of Debian., you can make 200-300 MB images of Debian, already with APT and security updates if you know what you are doing.

      – Rui F Ribeiro
      Jan 30 at 1:59












    • I know and agree what you say, the filesize of coreutils is not small for alpine but it is still acceptable for my use case as I'm not deploying it to an embedded device, thus, it would be a good balance for me :)

      – Rex Lam
      Jan 30 at 2:36






    • 1





      See related: unix.stackexchange.com/questions/419697/… ; however my concerns about Alpine is that once you lose that size advantage, it does not make sense keeping using it. (less supported, binaries built with musl instead of glibc, probably less updates during lesser time)

      – Rui F Ribeiro
      Jan 30 at 2:53











    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/3.0/"u003ecc by-sa 3.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
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f497397%2falpine-version-sort%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    With Alpine, you can add GNU sort via the coreutils package:



    apk add coreutils





    share|improve this answer



























      1














      With Alpine, you can add GNU sort via the coreutils package:



      apk add coreutils





      share|improve this answer

























        1












        1








        1







        With Alpine, you can add GNU sort via the coreutils package:



        apk add coreutils





        share|improve this answer













        With Alpine, you can add GNU sort via the coreutils package:



        apk add coreutils






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 30 at 1:13









        Jeff SchallerJeff Schaller

        41.6k1056132




        41.6k1056132























            0














            In alpine, sort - V (version) is not supported.



            Bear in mind that it's the busybox version and not the coreutis sort version.



            Such is the price to pay to have a very light distribution.



            Note that you can always add compiled binaries and glibc itself to alpine, or even static linked j binaries, but once you start doing that, you are adding more substantial size to it.






            share|improve this answer























            • There is also posts about how to working around not having sort here, I am in my the tube now, cannot get links

              – Rui F Ribeiro
              Jan 29 at 10:09











            • I installed coreutils instead of out of the box one, and it works

              – Rex Lam
              Jan 30 at 1:12











            • Yeah, it works adding it, though I am no alpine user. The point is that coreutils is big. If you keep adding size to alpine, it comes to a point where it could make more sense using a cut down image of Debian., you can make 200-300 MB images of Debian, already with APT and security updates if you know what you are doing.

              – Rui F Ribeiro
              Jan 30 at 1:59












            • I know and agree what you say, the filesize of coreutils is not small for alpine but it is still acceptable for my use case as I'm not deploying it to an embedded device, thus, it would be a good balance for me :)

              – Rex Lam
              Jan 30 at 2:36






            • 1





              See related: unix.stackexchange.com/questions/419697/… ; however my concerns about Alpine is that once you lose that size advantage, it does not make sense keeping using it. (less supported, binaries built with musl instead of glibc, probably less updates during lesser time)

              – Rui F Ribeiro
              Jan 30 at 2:53
















            0














            In alpine, sort - V (version) is not supported.



            Bear in mind that it's the busybox version and not the coreutis sort version.



            Such is the price to pay to have a very light distribution.



            Note that you can always add compiled binaries and glibc itself to alpine, or even static linked j binaries, but once you start doing that, you are adding more substantial size to it.






            share|improve this answer























            • There is also posts about how to working around not having sort here, I am in my the tube now, cannot get links

              – Rui F Ribeiro
              Jan 29 at 10:09











            • I installed coreutils instead of out of the box one, and it works

              – Rex Lam
              Jan 30 at 1:12











            • Yeah, it works adding it, though I am no alpine user. The point is that coreutils is big. If you keep adding size to alpine, it comes to a point where it could make more sense using a cut down image of Debian., you can make 200-300 MB images of Debian, already with APT and security updates if you know what you are doing.

              – Rui F Ribeiro
              Jan 30 at 1:59












            • I know and agree what you say, the filesize of coreutils is not small for alpine but it is still acceptable for my use case as I'm not deploying it to an embedded device, thus, it would be a good balance for me :)

              – Rex Lam
              Jan 30 at 2:36






            • 1





              See related: unix.stackexchange.com/questions/419697/… ; however my concerns about Alpine is that once you lose that size advantage, it does not make sense keeping using it. (less supported, binaries built with musl instead of glibc, probably less updates during lesser time)

              – Rui F Ribeiro
              Jan 30 at 2:53














            0












            0








            0







            In alpine, sort - V (version) is not supported.



            Bear in mind that it's the busybox version and not the coreutis sort version.



            Such is the price to pay to have a very light distribution.



            Note that you can always add compiled binaries and glibc itself to alpine, or even static linked j binaries, but once you start doing that, you are adding more substantial size to it.






            share|improve this answer













            In alpine, sort - V (version) is not supported.



            Bear in mind that it's the busybox version and not the coreutis sort version.



            Such is the price to pay to have a very light distribution.



            Note that you can always add compiled binaries and glibc itself to alpine, or even static linked j binaries, but once you start doing that, you are adding more substantial size to it.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Jan 29 at 10:08









            Rui F RibeiroRui F Ribeiro

            40.3k1479137




            40.3k1479137












            • There is also posts about how to working around not having sort here, I am in my the tube now, cannot get links

              – Rui F Ribeiro
              Jan 29 at 10:09











            • I installed coreutils instead of out of the box one, and it works

              – Rex Lam
              Jan 30 at 1:12











            • Yeah, it works adding it, though I am no alpine user. The point is that coreutils is big. If you keep adding size to alpine, it comes to a point where it could make more sense using a cut down image of Debian., you can make 200-300 MB images of Debian, already with APT and security updates if you know what you are doing.

              – Rui F Ribeiro
              Jan 30 at 1:59












            • I know and agree what you say, the filesize of coreutils is not small for alpine but it is still acceptable for my use case as I'm not deploying it to an embedded device, thus, it would be a good balance for me :)

              – Rex Lam
              Jan 30 at 2:36






            • 1





              See related: unix.stackexchange.com/questions/419697/… ; however my concerns about Alpine is that once you lose that size advantage, it does not make sense keeping using it. (less supported, binaries built with musl instead of glibc, probably less updates during lesser time)

              – Rui F Ribeiro
              Jan 30 at 2:53


















            • There is also posts about how to working around not having sort here, I am in my the tube now, cannot get links

              – Rui F Ribeiro
              Jan 29 at 10:09











            • I installed coreutils instead of out of the box one, and it works

              – Rex Lam
              Jan 30 at 1:12











            • Yeah, it works adding it, though I am no alpine user. The point is that coreutils is big. If you keep adding size to alpine, it comes to a point where it could make more sense using a cut down image of Debian., you can make 200-300 MB images of Debian, already with APT and security updates if you know what you are doing.

              – Rui F Ribeiro
              Jan 30 at 1:59












            • I know and agree what you say, the filesize of coreutils is not small for alpine but it is still acceptable for my use case as I'm not deploying it to an embedded device, thus, it would be a good balance for me :)

              – Rex Lam
              Jan 30 at 2:36






            • 1





              See related: unix.stackexchange.com/questions/419697/… ; however my concerns about Alpine is that once you lose that size advantage, it does not make sense keeping using it. (less supported, binaries built with musl instead of glibc, probably less updates during lesser time)

              – Rui F Ribeiro
              Jan 30 at 2:53

















            There is also posts about how to working around not having sort here, I am in my the tube now, cannot get links

            – Rui F Ribeiro
            Jan 29 at 10:09





            There is also posts about how to working around not having sort here, I am in my the tube now, cannot get links

            – Rui F Ribeiro
            Jan 29 at 10:09













            I installed coreutils instead of out of the box one, and it works

            – Rex Lam
            Jan 30 at 1:12





            I installed coreutils instead of out of the box one, and it works

            – Rex Lam
            Jan 30 at 1:12













            Yeah, it works adding it, though I am no alpine user. The point is that coreutils is big. If you keep adding size to alpine, it comes to a point where it could make more sense using a cut down image of Debian., you can make 200-300 MB images of Debian, already with APT and security updates if you know what you are doing.

            – Rui F Ribeiro
            Jan 30 at 1:59






            Yeah, it works adding it, though I am no alpine user. The point is that coreutils is big. If you keep adding size to alpine, it comes to a point where it could make more sense using a cut down image of Debian., you can make 200-300 MB images of Debian, already with APT and security updates if you know what you are doing.

            – Rui F Ribeiro
            Jan 30 at 1:59














            I know and agree what you say, the filesize of coreutils is not small for alpine but it is still acceptable for my use case as I'm not deploying it to an embedded device, thus, it would be a good balance for me :)

            – Rex Lam
            Jan 30 at 2:36





            I know and agree what you say, the filesize of coreutils is not small for alpine but it is still acceptable for my use case as I'm not deploying it to an embedded device, thus, it would be a good balance for me :)

            – Rex Lam
            Jan 30 at 2:36




            1




            1





            See related: unix.stackexchange.com/questions/419697/… ; however my concerns about Alpine is that once you lose that size advantage, it does not make sense keeping using it. (less supported, binaries built with musl instead of glibc, probably less updates during lesser time)

            – Rui F Ribeiro
            Jan 30 at 2:53






            See related: unix.stackexchange.com/questions/419697/… ; however my concerns about Alpine is that once you lose that size advantage, it does not make sense keeping using it. (less supported, binaries built with musl instead of glibc, probably less updates during lesser time)

            – Rui F Ribeiro
            Jan 30 at 2:53


















            draft saved

            draft discarded
















































            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%2f497397%2falpine-version-sort%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

            How to check contact read email or not when send email to Individual?

            Bahrain

            Postfix configuration issue with fips on centos 7; mailgun relay