In this lecture we are starting from some not empathy for the other.
For example I have three files.
You know we see that the standard output stream is printed to them now.
So let's change it.
And I did check it out.
Text.
And if you check is inside output text you see that it contains output of a command.
Now we can read the text on that stream to some file
and we see that standard output stream is still default reprinted to do now.
And when we check Eriphyle we see that it this empathy as there was no issue running at us.
CONAN Now let's make some errors.
I'm using percentage symbol for a month and I know that this action should throw an error because there
is no such a file.
And I really really read standard Aeros stream to error text file reseeded standard.
There was nothing printed as we don't see anything printed to the terminal.
Let's check at our file and we see the error message which was provided by a SQL month to standard or
Stream.
And then it had directed to this file.
Now we want to correct both the standard output and standard error streams to one file and we can call
it bold dot text.
And we see the error message from standard error stream printed in that file.
We can now redirect both streams to different files.
So standard output to output dot text and standard error stream to error that text file
and see
that only after that text file has some output.
Great.
Now will they extend that output to some file and add or stream we can that I detect to standard output
so to greater then the symbol unperson one
and if we check output growth textfile
we see error message from standard error stream which was already addicted to standard output stream
and this output stream most had detected to file out with good backs.
Now clear the screen and we can try some piping.
Firstly I will check what files are in my directory and I can using redirection display a number of
lines of some file if you want to do that using piping.
We need to send output of cat command to WC come on through using pipe within those comments.
Now let's make it more difficult.
Despite only first five lines of output provided by catechumen
and we can continue on display only last two lines of output provided by head command.
So we see fault and FirstLine.
Now let's count how many lines we have.
And obviously if we have only two lines now and don't forget that we can detect final output of those
piping commands into a file
and recheck that file we see the same output.
Yes.
Number two as was previously displayed to the screen.
Great.