Timeline for what is meant by connecting STDOUT and STDIN?
Current License: CC BY-SA 3.0
11 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 10, 2022 at 18:41 | comment | added | Carl | It also helps to remember that <file is a shorthand for 0<file, so 0<file cmd can be read as: 1. connect file to 0/stdin, 2. run cmd. Correspondingly, for >, 1/stdout is inferred left of the > operator if no file descriptor was given there. Hence, cmd >file is a shorthand for cmd 1>file which can be read as: 1. connect 1/stdout to file, 2. run cmd. | |
| Dec 24, 2018 at 14:11 | comment | added | Gilles 'SO- stop being evil' | @Motivated The redirection symbol goes before the input/output file. The redirection as a whole can be before or after the command name. I'm sure this has been covered in full by a question on the site, try searching in unix.stackexchange.com/questions/tagged/io-redirection | |
| Dec 23, 2018 at 18:34 | comment | added | Motivated | @Gilles - Can you include an example that illustrates the option to define the redirection before or after the command? For example, can the pipeline read as input-file.txt > commandA or input-file.txt < commandA? | |
| Jul 2, 2017 at 22:09 | history | edited | Gilles 'SO- stop being evil' | CC BY-SA 3.0 | added 106 characters in body |
| Oct 19, 2013 at 6:01 | comment | added | strugee | Gilles, I've asked a question on your phrasing at the bottom: unix.stackexchange.com/q/96724/29146. could you clarify? | |
| Apr 3, 2013 at 9:00 | history | edited | Lesmana | CC BY-SA 3.0 | edited body |
| May 30, 2012 at 15:31 | comment | added | Tivie | Great analogy. Going to borrow this one if you don't mind. | |
| Feb 28, 2012 at 18:34 | comment | added | Owen Blacker | Nice analogy. I've understood the concept of the stream pipeline for many years now, but somehow noone has ever used the factory / conveyor analogy, which makes it really easily (and succinctly) understandable. Thank you! | |
| Feb 10, 2012 at 1:46 | comment | added | JohnMerlino | The visual helped a lot | |
| Feb 10, 2012 at 1:46 | vote | accept | JohnMerlino | ||
| Feb 10, 2012 at 1:09 | history | answered | Gilles 'SO- stop being evil' | CC BY-SA 3.0 |