1
00:00:01,230 --> 00:00:09,390
Said has a great feature set program specific exit code then search button is found.

2
00:00:09,580 --> 00:00:14,700
Video showed this on some exemple But firstly let's bring the content of our file.

3
00:00:14,700 --> 00:00:18,650
Table of dot text.

4
00:00:18,750 --> 00:00:26,580
Now let's say that if you want to exit with exits that goes to when Mark is found.

5
00:00:26,670 --> 00:00:37,440
So as an address they will use a regular expression for searching vort mark and if Mark is found we

6
00:00:37,440 --> 00:00:43,580
are using one letter command Gule which will exit and other putzing.

7
00:00:43,600 --> 00:00:51,650
And and if it exits that goes to.

8
00:00:52,220 --> 00:00:56,070
And we also need to specify input file.

9
00:00:56,100 --> 00:01:03,680
Now we see printed all lines up to my dragline I remember that set by default prints all the lines and

10
00:01:03,720 --> 00:01:08,350
line Widmark is a page set of will be exited with exits to store.

11
00:01:08,670 --> 00:01:11,440
We can ensure by writing ecord dollar sign.

12
00:01:11,460 --> 00:01:12,300
Question mark.

13
00:01:12,510 --> 00:01:21,060
And AVC see number two great Yvie instead of Mark Insearch battering that regular expression.

14
00:01:21,180 --> 00:01:25,140
For example Richard who doesn't exist in our file.

15
00:01:29,400 --> 00:01:35,270
All lines are printed by set an exit status is zero.

16
00:01:37,170 --> 00:01:45,910
Sometimes we want only exit when some pattern is found and not print anything for that case.

17
00:01:46,050 --> 00:01:48,320
We can use option m

18
00:01:55,200 --> 00:02:05,180
and if he does we don't see any output printed and exit status is to a search button.

19
00:02:05,310 --> 00:02:12,880
Mark Vohs clearly found and set then exited with exit status to gay.

20
00:02:13,650 --> 00:02:21,250
If you want to exit the button marked is fine and also print the line using B.Com.

21
00:02:21,360 --> 00:02:26,850
I'm busy that we are receiving error message.

22
00:02:27,050 --> 00:02:29,060
Extra characters after the comma.

23
00:02:29,440 --> 00:02:38,050
Or does that mean set can by default use only one command aspirin create or whatever else.

24
00:02:38,050 --> 00:02:40,820
But can we somehow overcome this.

25
00:02:41,110 --> 00:02:48,000
Yes we can and I've explained to you how to do that in the lecture about option.

26
00:02:48,080 --> 00:02:48,310
The.
