Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

which cygwin package to get `parallel` command?

Tags:

linux

bash

cygwin

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-multiprocessor-power

like image 677
Bob Avatar asked May 13 '16 14:05

Bob


2 Answers

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/
like image 149
Cwissy Avatar answered Oct 31 '22 20:10

Cwissy


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
like image 8
DomainsFeatured Avatar answered Oct 31 '22 21:10

DomainsFeatured