get-command | where-object {$_.definition -like "*Awesome*"}
# Take an IP address as a string, increment the last octet by one and return the string$array = ("192.168.1.1").split(".")[int]$array[3] = ([int]$array[3]) + 1$IP = $array -join "."# Can it be done?
Sure:[Regex]::Replace('192.168.1.255', '\d{1,3}$', {[Int]$args[0].Value + 1})
Sure:
ReplyDelete[Regex]::Replace('192.168.1.255', '\d{1,3}$', {[Int]$args[0].Value + 1})