Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Improve Redirecting Input #454
In http://swcarpentry.github.io/shell-novice/04-pipefilter/ we have the following call out box:
I think the example is very simple and we should include a second example that covers pipe. My suggestion is to have
I try to not increase the size of the lesson but I believe this is a question that one of our students could have.
There is no such thing as precedence in pipes, all processes run concurrently and each one receives the output of its predecessor (in the pipe) as its input. Redirection only applies to the start / end of a pipe (input / output, respectively). Well, to be complete, stdout and stderr can be rdirected separately, but I'd consider this advanced material / no time to discuss in novice lesson.