ghuls / moreutils-parallel Goto Github PK
View Code? Open in Web Editor NEWImprove parallel of moreutils (http://joeyh.name/code/moreutils/)
License: GNU General Public License v2.0
Improve parallel of moreutils (http://joeyh.name/code/moreutils/)
License: GNU General Public License v2.0
It seems like the functionality provided by moreutils is equivalent to what you can get with xargs -P -I
, with the major difference between the two being whether replace args are passed as arguments (as in moreutils) or via stdinput (as in xargs).
This looks easy to do, any reason why it hasn't been? It fixes the problem I face with dropping the gnu version (motive: a tool like this should not be demanding to be cited in research any more than pipette supplier's order form).
Advantages: no command line length limitation, and can run a variety of cmds. See ###-marked usage.
Usage: parallel [OPTIONS] COMMAND -- ARGUMENTS
Run COMMAND in parallel and pass one ARGUMENT to each instance.
or: parallel [OPTIONS] -- COMMANDS
or: cat COMMANDS | parallel [OPTIONS] ####new
Run specified COMMANDS in parallel.
For -i and -n usage, adding
Not compatible with piped commands. ###new
Update: My mod seems to work with pipe as shown, but not with redirection: "parallel [OPTIONS] < cmd_file", where it seems to reread the file with mistakes forever after the first pass. It uses getline() to read stdin.
True aficianodos would want to port the applicable -i -n {} features to it. Production testing result to follow. Seems it could be adapted easily to manage gpu's or other resources as well as cpu threads. Any of this might justify forking to a non-colliding program name, and letting package managers decide. Hmm, is moreutils-parallel exactly that?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.