1
00:00:01,580 --> 00:00:05,810
In this lecture we are going to explore but in common.

2
00:00:06,100 --> 00:00:12,720
But firstly let's create a new file called Table that text on the first line.

3
00:00:12,770 --> 00:00:17,290
Right name then you stop and bright H.

4
00:00:17,490 --> 00:00:21,990
And again you stop and Bridey on it on other lines.

5
00:00:21,990 --> 00:00:27,350
I love write information about some people's name age and units.

6
00:00:27,630 --> 00:00:33,050
So do exactly the same as we will use this file for practicing set C'mon

7
00:00:41,870 --> 00:00:56,480
So I have three chords and so I will add two more.

8
00:00:57,950 --> 00:01:00,510
So now I have five records.

9
00:01:00,740 --> 00:01:03,490
So we can save the file now.

10
00:01:05,590 --> 00:01:11,030
Now let's say we want to print the lines which contains but then beat that.

11
00:01:11,360 --> 00:01:17,970
So I said no option needed here then address.

12
00:01:18,000 --> 00:01:20,220
Use Search bottom beat Peter

13
00:01:23,120 --> 00:01:31,660
and specify input file which you will be able to text if Iran does

14
00:01:38,170 --> 00:01:48,550
we see our message missing common this is because we didn't use any said one letter Kemang.

15
00:01:48,820 --> 00:01:50,340
So Ed paint come on.

16
00:01:50,350 --> 00:01:54,760
Represented by letter B and we can Hamleys.

17
00:01:55,240 --> 00:02:02,920
But if you see better line printed two times how is this possible because by default set prints all

18
00:02:02,920 --> 00:02:08,250
aligned to screen as we used print command for a line containing Peter.

19
00:02:08,400 --> 00:02:10,480
We printed this line again.

20
00:02:10,480 --> 00:02:21,360
So this is the reason why we are seeing good FAE's we can suppress printing of each line by set using

21
00:02:21,420 --> 00:02:22,020
option.

22
00:02:22,020 --> 00:02:30,570
And so if to previous command option and we should see only line containing bottom.

23
00:02:30,630 --> 00:02:31,120
Peter

24
00:02:37,760 --> 00:02:39,260
and we see.

25
00:02:39,330 --> 00:02:40,020
OK.

26
00:02:40,410 --> 00:02:49,560
So one time or by default set brings all the lines to standard output using option and we can suppress

27
00:02:49,860 --> 00:02:58,500
that and if you use print command we will see printed only lines we wanted to see.

28
00:02:58,500 --> 00:03:03,780
We can say to said that if you want to display only for example subline.

29
00:03:03,840 --> 00:03:12,540
So in other areas use instead of searching pattern inside slashes some number for example number three

30
00:03:12,680 --> 00:03:16,490
for a circle line followed by set one letter command.

31
00:03:16,500 --> 00:03:18,730
In our case letter B.

32
00:03:19,170 --> 00:03:23,500
And we can see only surd line printed.

33
00:03:23,530 --> 00:03:34,030
We can ensure by printing output of file table the text that John is really in search line.

34
00:03:34,170 --> 00:03:38,850
Do not forget that set by default it doesn't change input file.

35
00:03:38,880 --> 00:03:45,840
So if you previously ran some set commom we didn't change input file.

36
00:03:45,900 --> 00:03:54,600
Now just for recap if you don't use an option and say to set to print subline we see the output of input

37
00:03:54,600 --> 00:04:00,480
file you solid line is printed twice.

38
00:04:00,540 --> 00:04:08,520
We can easily use Range in Andreas for example by saying to myself I'm

39
00:04:12,150 --> 00:04:20,180
the after reading to said do do one letter command only four lines to 7 as a command.

40
00:04:20,190 --> 00:04:28,940
I am using here to be in NDC that everything was printed except for this line.

41
00:04:30,770 --> 00:04:32,290
It doesn't matter.

42
00:04:32,330 --> 00:04:33,510
Dead in my file.

43
00:04:33,560 --> 00:04:35,870
I have only six lines.

44
00:04:35,870 --> 00:04:44,970
If I say in the range do something also for 7 line no error message will be printed by bicep but if

45
00:04:44,970 --> 00:04:55,200
I want to say directly do something for her age ending in last line I can use Dallara sign which represents

46
00:04:55,980 --> 00:04:57,930
number of the last line.
