November 2018
Intermediate to advanced
566 pages
17h 15m
English
We will perform this task in two ways. Here is the first way:
Here is the script that performs these actions:
$Paths = (Get-ChildItem $HOME/random -Recurse).FullName$Paths = $Paths | Where-Object {$PSItem -notmatch "^$HOME/random/dir-04"}Write-Output "Here is the list of paths within the lab directory, without those within dir-04:`n`n"$Paths
The second method would be using the System.Collections.ArrayList class:
Read now
Unlock full access