Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialA X
12,842 PointsWhat is the point of modifying standard in and standard out to something else?
Referenced video: https://teamtreehouse.com/library/console-foundations/environment-and-redirection/pipes-and-redirection
I wasn't seeing the usefulness in modifying standard in and standard out. Especially how does one recover the standard in if you modify the standard in to not use the keyboard?
I didn't understand what any of Jim's examples were actually doing in terms of usefulness. Like why would we want to append an input text document to an output text document?
1 Answer
Steven Parker
231,269 PointsRedirection is usually only effective for one command.
So if you redirect the input of a command to be a file, only that command is affected. Your shell (the command prompt) will still take the next input from the console.
And one example of where you might append one document onto another is if you were preparing a master document from several individual chapters or section documents.