Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

process-substitution

Process substitution not allowed by Python’s subprocess with shell=True?

August 14, 2022 by Magenaut

Here is a toy example of process substitution that works fine in Bash:

Categories Python, Q&A Tags bash, process-substitution, python, shell, subprocess Leave a comment

What is the portable (POSIX) way to achieve process substitution?

August 11, 2022 by Magenaut

Some shells, like bash, support Process Substitution which is a way to present process output as a file, like this:

Categories Q&A, Unix & Linux Tags pipe, posix, process-substitution, shell Leave a comment

Why does process substitution result in a file called /dev/fd/63 which is a pipe?

August 11, 2022 by Magenaut

I am trying to understand named pipes in the context of this particular example.

Categories Q&A, Unix & Linux Tags open-files, pipe, process, process-substitution Leave a comment

Performance differences between pipelines and process substitution

August 11, 2022 by Magenaut

I tend to use pipelines in my bash scripts over process substitution in most situations, especially in cases of using multiple sets of commands as it seems more readable to do ... | ... | ... over ... < <(... < <(...)).

Categories Q&A, Unix & Linux Tags bash, performance, pipe, process-substitution, shell Leave a comment

How do I use tee to redirect to grep

August 10, 2022 by Magenaut

I don’t have much experience of using tee, so I hope this is not very basic.

Categories Q&A, Unix & Linux Tags bash, grep, pipe, process-substitution, tee Leave a comment

How process substitution is implemented in bash?

August 9, 2022 by Magenaut

I was researching the other question, when I realized I don’t understand what’s happening under the hood, what are those /dev/fd/* files and how come child processes can open them.

Categories Q&A, Unix & Linux Tags bash, process-substitution Leave a comment

Split an input for different command and combine the result

August 8, 2022 by Magenaut

I know how to combine the result of different command

Categories Q&A, Unix & Linux Tags bash, pipe, process-substitution, shell-script, text-processing Leave a comment

Process substitution and cat: can’t read stdin

August 8, 2022 by Magenaut

The process substitution <(cat) doesn’t work. Why?

Categories Q&A, Unix & Linux Tags io-redirection, process-substitution Leave a comment

grep files from list

August 7, 2022 by Magenaut

I am trying to run grep against a list of a few hundred files:

Categories Q&A, Unix & Linux Tags bash, command-substitution, grep, process-substitution Leave a comment

bash: how to propagate errors in process substitution?

August 7, 2022 by Magenaut

I want my shell scripts to fail whenever a command executed with them fails.

Categories Q&A, Unix & Linux Tags bash, process-substitution Leave a comment
Older posts
Page1 Page2 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress