From 002adc283b927fdd52e107fd341f9e477d480752 Mon Sep 17 00:00:00 2001 From: Michael Greene Date: Tue, 2 Aug 2016 08:41:22 -0500 Subject: [PATCH] caps .Replace --- docs/learning-powershell/create-powershell-scripts.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/learning-powershell/create-powershell-scripts.md b/docs/learning-powershell/create-powershell-scripts.md index a062ec7457..a530eba792 100644 --- a/docs/learning-powershell/create-powershell-scripts.md +++ b/docs/learning-powershell/create-powershell-scripts.md @@ -9,7 +9,7 @@ This would begin by opening your favorite text editor and pasting in the followi $ipInfo = ifconfig | Select-String 'inet' $ipInfo = [regex]::matches($ipInfo,"addr:\b(?:\d{1,3}\.){3}\d{1,3}\b") | ForEach-Object value foreach ($ip in $ipInfo) { - $ip.replace('addr:','') + $ip.Replace('addr:','') } ``` @@ -48,7 +48,7 @@ $IP = if ($IsLinux -or $IsOSX) { $ipInfo = ifconfig | Select-String 'inet' $ipInfo = [regex]::matches($ipInfo,"addr:\b(?:\d{1,3}\.){3}\d{1,3}\b") | ForEach-Object value foreach ($ip in $ipInfo) { - $ip.replace('addr:','') + $ip.Replace('addr:','') } } else {