PoshCode Archive  Artifact [f02ebf32c9]

Artifact f02ebf32c9ece5f80ffca5bc81891d1ac1f8e8732a191ceb54e1d1c672bcaa8f:

  • File Please-hep.ps1 — part of check-in [684155b64b] at 2018-06-10 14:01:19 on branch trunk — Can someone explain to me what the following code is used to do? And how many it will produce? and How would the output be used? (user: ThaBare1 size: 745)

# encoding: ascii
# api: powershell
# title: Please hep
# description: Can someone explain to me what the following code is used to do? And how many it will produce? and How would the output be used?
# version: 0.1
# author: ThaBare1
# license: CC0
# x-poshcode-id: 5784
# x-archived: 2016-03-06T00:56:54
# x-published: 2016-03-13T13:36:00
#
# What is the following code used to do? 
# How many will this produce? 
# How would the output be used?
#
$chars = "b","c","d","f","g","h","j","k","l","m","n","p","q","r","s","t","v","w","x","y","z" 

foreach($char1 in $chars){ 
foreach($char2 in $chars){ 
foreach($char3 in $chars){ 
foreach($char4 in $chars){ 
$pw = $char1+$char2+$char3+$char4 
write-host $pw 
} 
} 
}	
}