Skip to content

kou1okada/lesser-parallel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

lesser-parallel

lesser lesser lesser lesser lesser lesser lesser lesser

Lesser Parallel, a bash script library like the GNU Parallel. It only has lesser functions than the GNU Parallel. But it can use easily in any bash script by embedding.

Incidentally, the GNU Parallel team introduced the --embed option in the 20180222 release. And they cited this project as the inspiration for it.

So in today's environment, if you want to use GNU Parallel in a shell script without installing it, you can use the official --embed option instead of this project. ;-)

Usage

Usage:
  lesser-parallel [<options>] [<command> [<arguments> ...]] < <list_to_arguments>
  cat ... | lesser-parallel [<options>] [<command> [<arguments> ...]]
Options:
  -j <n>      : Run <n> jobs in parallel.
  -e [<file>] : Embed Lesser Parallel to <file>.
  -h, --help  : Display help and ext.
Arguments:
  Each jobs receive input line from STDIN into placeholders.
  Placeholders will be substituted with input line as below:
  {}   : Input line.
  {.}  : Input line without extention (pathname).
  {/}  : Input line without directory (basename).
  {//} : Input line without basename (dirname).
  {/.} : Input line without directory and extension (basename without suffix).
  {#}  : Job sequence number of paralell.

-e option embed a part of this script into FILE between the begin marker (# Lesser Parallel for Embedding) and the end marker (#/Lesser Parallel for Embedding).

The environment variable LESSER_PARALLEL_MAX_JOBS defines number of jobs to run up in parallel.

License

The MIT license.

About

Lesser Parallel, a bash script library like the GNU Parallel.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages