November 2018
Intermediate to advanced
566 pages
17h 15m
English
Perform the following steps:
PS> for ($j = 0; $j -lt 100; $j++) { $($i = 0; while ($i -lt 8) { (-join ((65..90) + (97..122) | Get-Random -Count 8 | ForEach-Object { [char]$_ })).ToString(); $i++ }) -join ' ' | Out-File ./ch10/01-random-text.txt -Append }
Write-Host "File details:" Get-Item ./ch10/01-random-text.txt "Here are the first seven lines from the file." Get-Content ./ch10/01-random-text.txt -ReadCount 7 | Select-Object -First 1 "Here are the last five lines from the file." Get-Content ...
Read now
Unlock full access