which cygwin package to get `parallel` command?

后端 未结 2 1029
自闭症患者
自闭症患者 2021-01-17 22:23

Which cygwin package do I install to get the parallel command?

http://www.commandlinefu.com/commands/view/4738/grep-or-anything-else-many-files-with-mul

相关标签:
2条回答
  • 2021-01-17 23:01

    This script works better to install the latest version of GNU parallel from the source.

    wd=$(mktemp -d)
    wget -nc -P $wd ftp://ftp.gnu.org/gnu/parallel/parallel-latest.tar.bz2
    
    cd $wd
    tar -xf parallel-latest.tar.bz2
    cd parallel-*
    ./configure && make && make install
    
    0 讨论(0)
  • 2021-01-17 23:02

    Install gcc, make, autotools etc into cygwin, download the software and compile it yourself (natively, under windows, so you get a windows, native binary) as it doesn't seem to be offered by cygwin.

    The README for the software has a section on windows:

    = Minimal installation =
    

    If you just need parallel and do not have 'make' installed (maybe the system is old or Microsoft Windows):

    wget http://git.savannah.gnu.org/cgit/parallel.git/plain/src/parallel
    chmod 755 parallel
    cp parallel sem
    mv parallel sem dir-in-your-$PATH/bin/
    
    0 讨论(0)
提交回复
热议问题