From bf22db9d68c472f57ff619f1ae96baa21ae02b24 Mon Sep 17 00:00:00 2001 From: Michael Greene Date: Tue, 2 Aug 2016 08:38:45 -0500 Subject: [PATCH] Context caps --- docs/learning-powershell/working-with-powershell-objects.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/learning-powershell/working-with-powershell-objects.md b/docs/learning-powershell/working-with-powershell-objects.md index d747ec02f0..07c81b1984 100644 --- a/docs/learning-powershell/working-with-powershell-objects.md +++ b/docs/learning-powershell/working-with-powershell-objects.md @@ -9,7 +9,7 @@ This is accomplished by parsing the output of an existing command, *parted -l* i ```PowerShell Function Get-DiskInfo { - $disks = sudo parted -l | Select-String "Disk /dev/sd*" -context 1,0 + $disks = sudo parted -l | Select-String "Disk /dev/sd*" -Context 1,0 $diskinfo = @() foreach ($disk in $disks) { $diskline1 = $disk.ToString().Split("`n")[0].ToString().Replace(' Model: ','')