Process Substitution in BASH - Commands for Linux @linuxleech
Process Substitution in BASH - Commands for Linux  @linuxleech
Uploaded March 2019 | Updated September 2026, 16 hours ago
Process Substitution in BASH - Commands for Linux
Process substitution allows you to run a single command or many commands in a subshell. You can then choose to either read from or write to your subshell.
By using process substitution you can replace a lot of workflows that would normally require you to create temporary files and have multiple command lines. You can accomplish most of these types of flows using process substitution, and all on a single command line.

One thing to remember when using process substitution is that you need to treat each process substitution in the same way that you would treat a file. For example you cannot provide echo with a file path and expect it to print out the content of the file. If you use echo in this way it will just print out the path to the file descriptor that was used for you process substitution.

In this video we cover a few examples using process substitution the first example shows you how to produce a side by side listing of two different directories using pr, ls and process substitution. The second example uses diff to
show us the files that are in one directory and not in the other.

In the final example we use md5sum to hash text that is written to our process substitution and demonstrate how the commands within our process substitution perceive this data.

Subscribe: youtube.com/user/linuxleech?sub_confirmation=1

Blog: linuxleech.com
Twitter: twitter.com/linuxleech
Facebook: facebook.com/linuxleech
Process Substitution in BASH - Commands for LinuxInstalling and removing applications in UbuntuBASH Shell commands redirection ( commands for linux )Linux command substitution and nested substitutionNautilus File Manager Scripts - Adding Superpowers to your File Browservirtualbox vm save and restore snapshotsStderr Stdout and Stdin - How to Redirect them - Commands for LinuxHow to Increase the size of fixed sized disk in Virtualbox - Any formatAdd User and password authentication to virtualbox vm RDP connectionHow to Empty Trash that Wont Delete - linuxFFMPEG Add Audio to Video - Single and MultitrackBASH Shell commands dealing with spaces commands for linux
Linux Leech |

Process Substitution in BASH - Commands for Linux

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER