Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

gnu-parallel

GNU Parallel and Bash functions: How to run the simple example from the manual

December 13, 2023 by Tarik

You cannot call a shell function from outside the shell where it was defined. A shell function is a concept inside the shell. The parallel command itself has no way to access it. Calling export -f doit in bash exports the function via the environment so that it is picked up by child processes. But … Read more

Categories bash Tags bash, gnu-parallel Leave a comment

Splitting command line args with GNU parallel

May 16, 2023 by Tarik

You are probably looking for –colsep. generate_file_pairs | parallel –colsep ‘ ‘ ./prog {1} {2} Read man parallel for more. And watch the intro video if you have not already done so http://www.youtube.com/watch?v=OpaiGYxkSuQ

Categories bash Tags bash, file-processing, gnu-parallel Leave a comment

GNU parallel not working at all

April 8, 2023 by Tarik

As I was about to complete writing this question, I ran parallel –version to report the version, only to find: WARNING: YOU ARE USING –tollef. IF THINGS ARE ACTING WEIRD USE –gnu. It is not clear to me why that flag is set by default. Needless to say, using –gnu worked! Thought I would post … Read more

Categories parallel-processing Tags gnu, gnu-parallel, parallel-processing, xargs Leave a comment

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa