WEBVTT

00:08.730 --> 00:12.600
Holder in this lesson you're going to talk about the garbage.

00:12.670 --> 00:14.600
And by being in Linux.

00:14.630 --> 00:15.100
OK.

00:15.200 --> 00:17.870
So talk about the come on with that action.

00:18.240 --> 00:26.460
So what is on with that action in Linux and meant any command that we execute is having three streams

00:26.460 --> 00:27.650
connected to it.

00:27.720 --> 00:28.580
OK.

00:28.590 --> 00:37.210
And those streams are standard input stream standard output stream and standard errors every day.

00:37.500 --> 00:44.250
With the help of these teams we can connect to the come on OK and we can either sell the data from it

00:44.250 --> 00:50.190
come on to a file or send the data as in who to come on from will find.

00:50.470 --> 00:50.740
OK.

00:50.740 --> 00:53.480
In short saving the out of.

00:53.540 --> 00:54.340
Come on.

00:54.410 --> 00:57.950
Go fly or sending in poop.

00:57.960 --> 00:58.530
Come on.

00:58.550 --> 01:01.660
Well fly is calling us come on the direction.

01:01.800 --> 01:07.050
And this country that actually needs the help of some operators.

01:07.080 --> 01:09.230
OK so let's see practically.

01:09.300 --> 01:13.980
How good is it first of all I would like to show you a new.

01:13.980 --> 01:15.020
Come on.

01:15.290 --> 01:15.590
OK.

01:15.600 --> 01:17.900
Which is used to create any kind of fine.

01:18.050 --> 01:20.800
Come on it's touch.

01:21.270 --> 01:24.020
That's Come on you can create any kind of file.

01:24.210 --> 01:24.770
OK.

01:25.080 --> 01:32.410
So suppose I want to create start the dx d and d h dot theory of file.

01:32.660 --> 01:37.780
And he turned to look at those files are they created in the current directory.

01:37.810 --> 01:44.510
LS And here you can see as you don't believe and dirty as stiff fines are created here.

01:44.600 --> 01:44.920
OK.

01:45.020 --> 01:49.530
And already there are some folders and files are present with that POV.

01:49.560 --> 01:52.490
But come on you can create any kind of file.

01:52.600 --> 01:52.990
OK.

01:53.130 --> 01:56.880
So let's talk about the Kamandi that action.

01:56.970 --> 02:01.260
So now we are going to search the output often come on file.

02:01.470 --> 02:06.720
Ok let's try this with Derleth's come on if you want to see the output of the Silis come on.

02:06.720 --> 02:07.790
Go find them.

02:07.790 --> 02:13.170
Just type in less space rather than operator and the name of the file.

02:13.290 --> 02:15.450
Very want to see the data.

02:15.450 --> 02:18.460
Suppose I type it Dorothy XTi and hit enter.

02:18.680 --> 02:19.180
OK.

02:19.350 --> 02:23.240
So you can see the come on does not show any output.

02:23.280 --> 02:27.760
And there are all these directly so to the file they're not the XP.

02:27.850 --> 02:28.510
Let's see.

02:28.560 --> 02:34.290
Got 60 and here you can see the output of this command is so good it's fine.

02:34.500 --> 02:35.060
OK.

02:35.220 --> 02:40.830
In this way greater great golden is used to seal the output of the come on.

02:41.060 --> 02:43.380
We'll find the next operator.

02:43.530 --> 02:49.750
That I would like to show you here is the greater than greater than OPERATOR OK rather than greater

02:49.760 --> 02:53.040
than operator is rendered like this.

02:53.120 --> 02:59.700
OK but before I actually show you let's try the same come on again here.

02:59.910 --> 03:04.690
And let's see the contents of it got the key fine.

03:04.850 --> 03:05.260
OK.

03:05.280 --> 03:11.900
You can see here the exit Kuper the same Come on times but determined the same.

03:11.900 --> 03:16.530
That means the same output should be added twice here.

03:16.650 --> 03:21.220
But instead of that it is showing the output only one time here.

03:21.350 --> 03:21.780
OK.

03:21.900 --> 03:31.140
So why this thing is happening because every time when you use this operator it it is all the previous

03:31.380 --> 03:35.480
contents of the file and add the new content stupid.

03:35.780 --> 03:40.640
OK so our this problem is greater than greater than our credit is.

03:40.680 --> 03:47.640
Again this will open the output to the already existing file without it is in the data.

03:47.790 --> 03:49.680
OK so let's try it.

03:50.160 --> 03:50.650
OK.

03:50.650 --> 03:55.120
And now let's do the contents of the XTi.

03:55.650 --> 03:59.040
And now here you can see the data is appended.

03:59.060 --> 03:59.410
OK.

03:59.410 --> 04:06.150
Now we can see here the same data two times in this way you can use the greater then greater than Obregon

04:06.680 --> 04:08.890
up in the data file.

04:09.130 --> 04:09.810
OK.

04:09.900 --> 04:14.680
Now I show you Hoku sin there better from will file as input.

04:14.820 --> 04:15.670
Come on.

04:15.930 --> 04:19.970
OK so the someone is used to store the data OK from a fine.

04:20.100 --> 04:20.550
OK.

04:20.640 --> 04:23.130
So you send the input sort.

04:23.130 --> 04:30.000
Come on from this file you need to use the operator like this or get sort less done operator and the

04:30.120 --> 04:32.360
filing that is it not BSD.

04:32.440 --> 04:34.170
Let's see what happens.

04:34.680 --> 04:34.980
OK.

04:34.980 --> 04:38.960
Here you can see it's sort of present inside the file.

04:39.150 --> 04:40.290
OK.

04:40.290 --> 04:49.720
And if you want to sort the data in the was order just provide the option here to slash R and hit enter.

04:49.920 --> 04:54.890
And here you can see it displays or it's sort the data in the reverse order.

04:54.930 --> 04:55.300
OK.

04:55.320 --> 04:56.530
From the file.

04:56.760 --> 05:03.460
In this way you can send the input to come on from all file with the help of less than praeter.

05:03.610 --> 05:04.140
OK.

05:04.380 --> 05:13.440
In this way does come on a redirection or use the piggy to send Darco file or receive the data from

05:13.440 --> 05:14.390
a fine.

05:14.760 --> 05:15.070
OK.

05:15.090 --> 05:21.810
Now here you saw how the data is sorted there with the help of this operator board how to check whether

05:21.920 --> 05:24.190
your command is working or not.

05:24.250 --> 05:24.890
OK.

05:25.110 --> 05:31.020
Because when you remove those and hit enter it will show the same output.

05:31.710 --> 05:35.750
So we can take this by combining two operators here.

05:36.080 --> 05:36.630
OK.

05:36.840 --> 05:39.710
Both less than and greater than that means.

05:39.710 --> 05:45.680
Here we are sorting the data entry was order and serving it to new file that is.

05:45.710 --> 05:48.030
Tony got The X Files.

05:48.080 --> 05:50.420
OK let's see what happens.

05:50.700 --> 05:51.400
OK.

05:52.200 --> 05:53.360
And here we go.

05:53.550 --> 05:55.040
The file is created.

05:55.320 --> 05:57.100
Give you the contents

06:00.120 --> 06:00.510
again.

06:00.510 --> 06:05.550
Here you can see the data is so good that there will not be any file in reverse order.

06:05.690 --> 06:06.000
OK.

06:06.000 --> 06:07.490
That means our.

06:07.550 --> 06:11.060
Come on our code here is working OK.

06:11.120 --> 06:14.700
The next thing that I would like to explain here is piping.

06:14.700 --> 06:19.890
So what is piping piping means sending out to go from one come on.

06:19.890 --> 06:21.130
As in put on a.

06:21.150 --> 06:21.900
Come on.

06:22.110 --> 06:22.560
OK.

06:22.740 --> 06:28.890
And we can accomplish this video of pipe operator here we can see the pipe operator is denoted by the

06:28.890 --> 06:30.950
symbol here on your keyboard.

06:32.120 --> 06:38.040
OK let's do the piping with the same Come on less and the pipe OPERATOR OK.

06:38.080 --> 06:38.770
Ellis come on.

06:38.770 --> 06:40.800
We displayed the files and folders.

06:40.810 --> 06:41.390
OK.

06:41.640 --> 06:44.860
And I want to sort it and display it to the output.

06:44.890 --> 06:47.170
So let's use the sort.

06:47.260 --> 06:50.700
On and I want to sort them in reverse order.

06:50.700 --> 06:54.060
So last hour let's see what happens.

06:54.490 --> 06:55.180
OK.

06:55.180 --> 06:59.880
Here you can see the output of ls come on send it to the sot.

06:59.890 --> 07:00.300
Come on.

07:00.310 --> 07:05.690
And the command will sort the data and display them or put.

07:05.740 --> 07:09.910
And what happens if I remove the slasher printer.

07:09.970 --> 07:14.930
And here you can see it sort the data in the ascending order.

07:15.190 --> 07:23.030
So in this way you can use Kamandi direction and piping it to seal the data or to send the input to

07:23.030 --> 07:26.940
a command from a file or to send out go go.

07:26.950 --> 07:27.790
Come on that's it.

07:27.820 --> 07:28.800
Put the on.

07:28.840 --> 07:29.530
Come on.

07:29.680 --> 07:30.220
OK.
