1
00:00:02,440 --> 00:00:10,510
Substitute command is without any doubt the most used command of all set commands how looks it's structure.

2
00:00:10,840 --> 00:00:14,680
They can see it right now as a one letter command.

3
00:00:14,680 --> 00:00:20,410
We are using that as then we have inside slashes regular expression.

4
00:00:21,380 --> 00:00:28,550
If there is found something which matches regular expression it will be replaced with a replacement

5
00:00:29,030 --> 00:00:31,400
which is inside another slushies.

6
00:00:32,320 --> 00:00:37,520
And we can of course use some flack original or cover later.

7
00:00:37,750 --> 00:00:45,650
Here we have some examples of using substitute command on output from eco commom eco command.

8
00:00:45,670 --> 00:00:56,230
Output is 1 5 3 and we're putting this out both as an input into set common sense searches for button

9
00:00:56,230 --> 00:00:57,110
5.

10
00:00:57,430 --> 00:01:01,280
And surprisingly it finds a string containing that pattern.

11
00:01:01,630 --> 00:01:03,950
And that thing is five.

12
00:01:04,330 --> 00:01:11,410
So that string will be replaced by string which is in a replacement place so it will be replaced by

13
00:01:11,410 --> 00:01:12,820
staying 2.

14
00:01:13,150 --> 00:01:22,960
And we will see on screen printed one two three and other examples can be substitute all numbers.

15
00:01:22,970 --> 00:01:25,210
It's free as that is.

16
00:01:25,220 --> 00:01:28,270
So here we have output of eco commom.

17
00:01:28,490 --> 00:01:35,000
Hannah is 50 years old and we are using it as an input into set common.

18
00:01:35,270 --> 00:01:43,580
Wherever you are searching for all numbers and if found we are replacing it with Siri asterisks.

19
00:01:44,000 --> 00:01:48,390
So from initial output Hannah is 50 years old.

20
00:01:48,410 --> 00:01:55,880
We will see Hannah is asterisk asterisk asterisk ears of.

21
00:01:55,950 --> 00:02:00,500
Now we can say something about most famous Fyke G.

22
00:02:01,110 --> 00:02:04,590
It means globally and what it does.

23
00:02:04,620 --> 00:02:15,030
You can see examples if you have for example in Bored to set the month 0 2 9 0 5 and we will substitute

24
00:02:15,030 --> 00:02:21,990
command and replace the 0 zero Awam the output will be 1 2 9 0 5.

25
00:02:22,020 --> 00:02:27,960
As said Burn forms by default a replacement only for first string which contains that.

26
00:02:27,960 --> 00:02:34,010
But then in our case 0 but if on the other hand use g.

27
00:02:34,050 --> 00:02:39,950
Like I said we'll do the replacement for all strings which contains that but.

28
00:02:41,350 --> 00:02:45,200
Now let's see this substitute command in action.
