.


:




:

































 

 

 

 





. , , . , $a :

$a = 1,5,7.

, (..). ,

$b = 10..15

$b, 6 10, 11, 12, 13, 14 15.

:

$f = Get-Content C:\DATA\numb.txt -TotalCount 25

$f.Length

25.

Get-Content $f. -TotalCount 25. Length , , 25 (, munb.txt 25 ).

( ) c Length. . . , , -1 .

 

PowerShell ( 32- , , ), . , , . , 32- :

[int[]]$a = 1,2,3.

PowerShell .NET-, , . . + +=. , $a 4 5:

$a += 4,5.

+= :

, ;

;

.

, .

, $b $c +. :

$d = $b + $c.

2.1.10.

( (regexp, regular expressions)) , . PowerShell , . PowerShell .NET.

-, (parsing) . , , . .

, . DIR, , *.exe. . , , DIR??.exe .exe . PowerShell . , , [a-f] a f, (a,b,c,d,e,f), [smw] (s, m w). , Get-Childitem [smw]??.exe .exe, , s, m, w.





:


: 2018-10-18; !; : 450 |


:

:

80% - .
==> ...

1525 - | 1369 -


© 2015-2024 lektsii.org - -

: 0.011 .