Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^3: Sort alphabetically from file

by Fletch (Bishop)
on Jun 14, 2019 at 17:09 UTC ( #11101360=note: print w/replies, xml ) Need Help??


in reply to Re^2: Sort alphabetically from file
in thread Sort alphabetically from file

If you're stuck in Wintendo land there's also Cygwin which has the GNU stuff and lots of other open source stuff.

The cake is a lie.
The cake is a lie.
The cake is a lie.

Replies are listed 'Best First'.
Re^4: Sort alphabetically from file
by swl (Vicar) on Jun 14, 2019 at 23:54 UTC

    I shifted from cygwin to MSYS2 some time ago, although I am increasingly using the Windows Subsystem for Linux on Win10 boxes. That said, I use them in isolation so none of them are in my windows path.

    The PerlPowerTools might also be useful, although I have never tried them myself.

      I just tried to install them and cannot get past installation errors of DB_File. It needs BerkeleyDB header files apparently and have not had time to look into getting any of it installed. would be cool, but with WSL/bash incorporated in win10 already, i dont really see a need for it unless some programs work that WSL does not yet support.

      EDIT: got them installed on windows. seems to work for the most part (grep, ls, diff) will need to test them further. I had to force install after trying for hours to install DB::File unsuccessfully. Kept getting undefined reference errors about db_version and db_create and tried to track it down but could not unfortunately.

        I should have been clearer. I only use msys2 etc to access unix utilities like grep, find, sort etc. For perl related work I use Strawberry perl.

        I do have an old win bash at the end of my path for the tar utility when packaging for cpan, but could probably use the msys2 or git paths instead.

Re^4: Sort alphabetically from file
by LanX (Sage) on Jun 14, 2019 at 18:12 UTC
    I stopped installing cygwin since I discovered git's bash terminal is supporting most of bash

     ls -l | grep NT | sort -k5

    works fine for me! :)

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

      Why install most of bash (GIT) when you can install WSL? It works great for just about everything I have needed to do, and also has updated perl.
        Because developers should use a version control system anyway?

        Cheers Rolf
        (addicted to the Perl Programming Language :)
        Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

Re^4: Sort alphabetically from file
by Lotus1 (Vicar) on Jun 14, 2019 at 17:34 UTC

    Yes, I've used Cygwin for years on my personal laptops but it isn't an option for me at work on corporate Windows servers. Up until ten years ago one of our software vendors was including the GNU Utilities on certain machines but that is no longer the case. I end up reinventing the GNU wheels. Would those be GNU-er wheels?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11101360]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2022-08-08 20:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?