November 2018
Intermediate to advanced
566 pages
17h 15m
English
In order to go through this lab recipe, you need the lab set up. If you have not already done so, run the quick-and-dirty Initialize-PacktPs6CoreLinuxLab.ps1 script, under the ch04 directory, within the https://github.com/PacktPublishing/PowerShell-6.0-Linux-Administration-Cookbook repository. Run the script to get the necessary files.
Next, use the input file that we created in the Understanding Here-Strings recipe in Chapter 6, Working with Strings, to create files within the lab directory. Change the value of $LabPath to point to your lab directory:
PS> $LabPath = "$HOME/random"PS> Get-Content ./ch06/03-input-file.txt | ForEach-Object { New-Item -Path (Join-Path $LabPath -ChildPath $PSItem) -ItemType Directory -Force } ...Read now
Unlock full access