Magenaut

Magenaut

A blog about Magento Development, Magento bug fixing, and more

Skip to content
Menu
  • Home
  • Notes
  • Tutorial
  • Bug fixing
  • Extension
  • Server
  • Q&A
  • About

Tag: process-substitution

Q&APosted onAugust 11, 2022

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

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

Read More
Q&APosted onAugust 11, 2022

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

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

Read More
Q&APosted onAugust 11, 2022

Performance differences between pipelines and process substitution

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 ... < <(... < <(...)).

Read More
Q&APosted onAugust 10, 2022

How do I use tee to redirect to grep

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

Read More
Q&APosted onAugust 9, 2022

How process substitution is implemented in bash?

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.

Read More
Q&APosted onAugust 8, 2022

Split an input for different command and combine the result

I know how to combine the result of different command

Read More
Q&APosted onAugust 8, 2022

Process substitution and cat: can’t read stdin

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

Read More
Q&APosted onAugust 7, 2022

grep files from list

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

Read More
Q&APosted onAugust 7, 2022

bash: how to propagate errors in process substitution?

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

Read More
Q&APosted onAugust 6, 2022

How to emulate Process Substitution in Dash?

In bash, I can use Process Substitution and treat output of a process as if it was a file saved on disk:

Read More

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 140 other subscribers

Recent Comments

  • anonymous on Fix libwacom9 dependency issue when upgrade Debian
  • sreedhar on Fix libwacom9 dependency issue when upgrade Debian
  • saintnick on Fix libwacom9 dependency issue when upgrade Debian
  • ranafoul on Fix libwacom9 dependency issue when upgrade Debian
  • John Fro on UFW rule from a list of IPs

Tags

ajax bash block-editor categories command-line custom-field custom-post-types custom-taxonomy customization debian files filesystems filters functions grep hooks images javascript linux loop menus permalinks permissions php plugin-development plugins posts python rest-api security sed shell shell-script shortcode ssh terminal text-processing theme-development themes uploads url-rewriting users woocommerce-offtopic wp-admin wp-query

© Magenaut - The Magento Astronaut