| Start |
|---|
| Compare two files from the web The following compares two files with |
| Feed a while loop with the output of a command This feeds a |
| Concatenating files It is well known that you cannot use the same file for input and ouput in the same command. For instance, doesn’t do what you want. By the time One might think to avoid this with process substitution, that is, that the command will force the original contents of The only way to prepend a file to another file is to create an intermediate one: which is what |
With paste command |
| Stream a file through multiple programs at once This counts the number of lines in a big file with Normally Here the command |
| To avoid usage of a sub-shell One major aspect of process substitution is that it lets us avoid usage of a sub-shell when piping commands from the shell. This can be demonstrated with a simple example below. I have the following files in my current folder: If I pipe to a
Process substitution will solve the problem by avoiding use the of pipe This will retain the RemarksProcess substitution is a form of redirection where the input or output of a process (some sequence of commands) appear as a temporary file. |
Read Article
https://develop.horje.com/learn/1434/reference