2016 Update
This commit is contained in:
parent
948b86eafa
commit
dcf5d15da3
7965 changed files with 139854 additions and 31002 deletions
|
|
@ -0,0 +1,21 @@
|
|||
$A = @( "John"
|
||||
"Bob"
|
||||
"Mary"
|
||||
"Serena" )
|
||||
|
||||
$B = @( "Jim"
|
||||
"Mary"
|
||||
"John"
|
||||
"Bob" )
|
||||
|
||||
# Full commandlet name and full parameter names
|
||||
Compare-Object -ReferenceObject $A -DifferenceObject $B
|
||||
|
||||
# Same commandlet using an alias and positional parameters
|
||||
Compare $A $B
|
||||
|
||||
# A - B
|
||||
Compare $A $B | Where SideIndicator -eq "<=" | Select -ExpandProperty InputObject
|
||||
|
||||
# B - A
|
||||
Compare $A $B | Where SideIndicator -eq "=>" | Select -ExpandProperty InputObject
|
||||
Loading…
Add table
Add a link
Reference in a new issue