WEBVTT

00:08.460 --> 00:11.330
Windows POAs shell supports several.

00:11.340 --> 00:18.510
Come on let's that allow you to assign a well to wearable or manipulate variables.

00:18.530 --> 00:26.030
They are said to wearable new wearable get wearable clear wearable and remove wearable.

00:26.040 --> 00:32.910
Let's start with the saturable Come on let the set wearable command letra why it's an alternative to

00:32.910 --> 00:41.160
the assignment operator described earlier to allow you to assign a value or well used to wearable one

00:41.160 --> 00:45.110
uses to allow wearable assignment in a pipeline.

00:45.300 --> 00:52.150
In addition to common parameterless the saturable come on GLADD supports the following parameters.

00:52.230 --> 00:56.070
Name it specifies the name of the wearable.

00:56.080 --> 00:57.090
Be Insaf.

00:57.150 --> 01:01.270
It is a positional parameter in a position of one.

01:01.290 --> 01:04.060
Well you must be specified here.

01:04.170 --> 01:10.820
Include parameter specifies only items upon which the command left will act.

01:10.950 --> 01:17.950
Exclude parameter specifies those items upon which the command letter will not act.

01:17.970 --> 01:25.920
Scope parameter scope were wearable is to be created which can be named scope.

01:25.950 --> 01:32.820
For example global local's or rescript or number relative to the current scope.

01:32.940 --> 01:40.560
Well your parameter specifies the well you're signed to the unwearable description specifies a user

01:40.560 --> 01:45.460
defined description variable option parameter allowed.

01:45.480 --> 01:53.080
Well yours are known originally that constant private all scope for spring matter.

01:53.100 --> 01:58.310
It specifies that every effort be made to set the variable.

01:58.350 --> 02:04.870
What if parameter is a boolean value that specifies that no action should be taken.

02:04.980 --> 02:13.590
But the user should be shown what would have happened if the command left had executive confirmed parameter

02:13.590 --> 02:14.280
as a boolean.

02:14.280 --> 02:22.740
Whether that's pacifies let the user be asked to confirm their intended action before it is carried

02:22.740 --> 02:31.140
out and pass through parameter specifies that the object created are passed to the next step in the

02:31.140 --> 02:32.110
pipeline.

02:32.250 --> 02:34.810
Let's take a look at the following example.

02:34.860 --> 02:43.390
Let's type the following command to assign the well-you of 2 to variable a set variable.

02:43.430 --> 02:50.460
Name a well-known 20th and pipe it to format list live format list statement displays.

02:50.460 --> 02:55.560
Nothin loses because there is no pass through parameter.

02:55.560 --> 03:03.210
If you get a pass through parameter then information about the variable can be displayed using the format

03:03.210 --> 03:04.320
list statement.

03:04.440 --> 03:06.540
So let's roll the following example.

03:06.570 --> 03:08.010
Set variable name.

03:08.020 --> 03:15.660
A valid 20 pass through description Adem a variable and pipe it to format list.

03:15.660 --> 03:18.620
Next up the new verbal command left.

03:18.620 --> 03:24.330
Then your wearable command creates a new variable in addition to common parameter.

03:24.570 --> 03:25.410
The new variable.

03:25.410 --> 03:28.290
C'mon let's support the following parameters.

03:28.350 --> 03:34.940
Name Well your description option for is passed through scope.

03:34.980 --> 03:41.920
What you can confirm parameters are checked in pretty much the same as in set variable command left.

03:42.090 --> 03:44.210
Except here a parameter.

03:44.220 --> 03:52.230
Well you use a positional parameter in position to and new verbal command LET does not take include

03:52.260 --> 03:59.240
and exclude parameters unlike the saturable command left which supports those parameters.

03:59.250 --> 04:04.800
So let's take a look at the following example the following command creates a new variable.

04:04.830 --> 04:09.890
My new variable but does not assign a value to it.

04:09.990 --> 04:17.670
Since the past through parameter is present the format list statement allows you to see that the variable

04:17.670 --> 04:20.960
exists but has no well your set.

04:21.000 --> 04:25.640
The command looks like this new variable name new.

04:25.680 --> 04:27.710
My new variable pass through.

04:27.710 --> 04:32.390
Pipe it to ferment format list some verse about GET variable command come.

04:32.500 --> 04:39.570
Let get a variable command let allows you to retrieve a Venter's partial variable to get a variable

04:39.570 --> 04:40.020
command.

04:40.040 --> 04:42.860
Let's support the following parameters.

04:42.960 --> 04:51.300
In addition to the common parameters name specifies the name of the variable accepts wildcard characters.

04:51.390 --> 04:59.430
Well you're only a boolean value if present then only the value of the variable is passed to all the

04:59.430 --> 05:00.340
pipeline.

05:00.480 --> 05:09.650
Include parameter if present specifies which variables to include qualifiers well of the name parameter

05:09.980 --> 05:17.600
and exclude parameter if present specifies which wearables to exclude qualifies the value of the name

05:17.600 --> 05:23.270
perimeter and scope parameter it specifies the scope of the variable.

05:23.390 --> 05:30.050
Let's take a look at the following example which is showing the creation of four variables variable

05:30.110 --> 05:34.730
a while two is three and a four legged variable.

05:34.750 --> 05:43.440
Command line is used to retrieve and display information about the variables a VOM a 2 and a 4.

05:43.580 --> 05:52.340
So first let's stop these commands to create the wearables variable avionic will stand a to twenty three

05:52.590 --> 05:55.400
thirty and a four for two.

05:55.550 --> 06:03.260
Now let's Taieb this command to retrieve the previously mentioned variables get variable dush name a

06:03.590 --> 06:11.800
star does include a and one to four in square brackets and pipe it to for my list.

06:11.810 --> 06:18.370
If you run this command the information on the three desired variables will be display there well you're

06:18.380 --> 06:19.090
over there.

06:19.100 --> 06:28.490
Include parameter is a regular expression part or the character class 1 to 4 in square brackets matches

06:28.580 --> 06:32.270
a single character which is contained in the class.

06:32.350 --> 06:43.100
That's the variables A want a 2 and a for match but a 3 does not match since 3 isn't contained in the

06:43.100 --> 06:44.390
character class.

06:44.390 --> 06:49.580
Notice that the variables are not by default ordered by name.

06:49.610 --> 06:57.370
If you wanted to sort them by name you would need to add a pipeline stamp using the sort object command

06:57.400 --> 06:57.990
left.

06:58.010 --> 06:59.990
So let's type the following command.

07:00.080 --> 07:03.280
Get variable name a asterisk.

07:03.280 --> 07:13.010
This include a one to four in square brackets and pipe it to sort object name and pipe it to form at

07:13.010 --> 07:18.280
least more you'll get the output sorted by name.

07:18.290 --> 07:24.900
The clear verbal command left it clears the way olio of one or more variables.

07:25.010 --> 07:31.230
In addition to common parameters the clear variable C'mon let's support the following parameters.

07:31.250 --> 07:37.170
Name include exclude for this scope Wotif conform.

07:37.310 --> 07:44.150
Let's take a look at the following example which demonstrates clear in the wealth of specified variables

07:44.260 --> 07:50.760
will clear the values of the variable a while a two ways three and a four.

07:50.820 --> 07:53.980
Created in the preceding example.

07:54.020 --> 08:00.110
First show that the four variables exist and have a value set.

08:00.110 --> 08:10.550
Using this command get a variable name a asterisk in does include a and one two three four square brackets

08:10.550 --> 08:18.260
and pipe it to form at least certain certain by name and well you can see that they are existent.

08:18.290 --> 08:22.410
Next let's clear the value of three of those variables.

08:22.440 --> 08:25.790
Using this command the value of variable.

08:25.870 --> 08:27.450
3 is not clear.

08:27.560 --> 08:32.480
So let's type clear wearable Desch name a asterisk.

08:32.510 --> 08:36.770
This include a 1 to 4 in square brackets.

08:36.770 --> 08:42.980
Now let's check to see that the values of those variables have been clear to you that the command get

08:42.980 --> 08:44.480
a variable name.

08:44.510 --> 08:54.410
Asterisk include a 1 2 3 4 in square brackets and to form format list format and by name and well as

08:54.410 --> 08:59.670
you can see the value of each of the three variables has been cleared.

08:59.690 --> 09:04.620
Now some votes about remove variable command left as it comes from the name.

09:04.640 --> 09:07.880
It removes one or more existing variables.

09:07.880 --> 09:12.860
It supports the foreign parameters in addition to the common parameter name.

09:12.980 --> 09:18.350
Include exclude force scope whatever and conform.

09:18.360 --> 09:24.770
Let's take a look at some examples and therefore following example will delete the variable a while

09:24.780 --> 09:26.750
made 2 and 3.

09:26.780 --> 09:34.500
If you are unsure of the effort of using a remove variable command you can use the Wattie of parameter

09:34.710 --> 09:35.880
as in the pursuit.

09:35.880 --> 09:44.750
An example will use for variables a one a two is three and a four to explore removing the three desired

09:44.780 --> 09:49.980
variables with the protection of their What-If perimeter.

09:50.090 --> 09:54.040
You can type the following command to remove variable name.

09:54.110 --> 10:03.070
Include a one two three in square brackets and mention what parameter and you'll see that there are

10:03.080 --> 10:10.260
three variables there would have been removed if there were remoter hadn't been used since.

10:10.300 --> 10:18.350
Lose the variables you want to dilute remove the What-If Barometer from the command and press center.

10:18.350 --> 10:27.810
Now if you type get variable Desch name a asterisk does include a one to four in square brackets.

10:27.920 --> 10:32.240
You can confirm that only a four exists.
