From 353de6a5e7f7024ce4250cfac3e37104a5611e71 Mon Sep 17 00:00:00 2001 From: "Robert M. Toups, Jr" Date: Wed, 27 Jan 2021 16:34:41 -0500 Subject: [PATCH] Improved example --- Docs/Find-IPv4Address.md | 9 +++++++++ Public/Find-IPv4Address.ps1 | 9 +++++++++ en-US/IPv4Toolbox-help.xml | 11 ++++++++++- 3 files changed, 28 insertions(+), 1 deletion(-) diff --git a/Docs/Find-IPv4Address.md b/Docs/Find-IPv4Address.md index 5c445e7..c75c0e8 100644 --- a/Docs/Find-IPv4Address.md +++ b/Docs/Find-IPv4Address.md @@ -34,6 +34,15 @@ Find-IPv4Address -Text 'Mary had little lamb 192.168.1.1 who fleece was white as ```powershell cat /var/log/fail2ban.log | Find-IPv4Address | Sort-Object -Property @{Expression = { $_ -as [System.Version] } } -Unique + +2.90.110.124 +14.184.248.97 +14.186.84.158 +27.147.226.173 +37.144.205.31 +39.59.34.40 +41.228.238.217 +... ``` ## PARAMETERS diff --git a/Public/Find-IPv4Address.ps1 b/Public/Find-IPv4Address.ps1 index dacaf0b..f063cce 100644 --- a/Public/Find-IPv4Address.ps1 +++ b/Public/Find-IPv4Address.ps1 @@ -22,6 +22,15 @@ cat /var/log/fail2ban.log | Find-IPv4Address | Sort-Object -Property @{Expression = { $_ -as [System.Version] } } -Unique + 2.90.110.124 + 14.184.248.97 + 14.186.84.158 + 27.147.226.173 + 37.144.205.31 + 39.59.34.40 + 41.228.238.217 + ... + .NOTES The body of text provided to the Text parameter can be multi-line. The function will only return valid IPv4 Addresses from 0.0.0.0 to 255.255.255.255. diff --git a/en-US/IPv4Toolbox-help.xml b/en-US/IPv4Toolbox-help.xml index 85fe619..f66daf6 100644 --- a/en-US/IPv4Toolbox-help.xml +++ b/en-US/IPv4Toolbox-help.xml @@ -212,7 +212,16 @@ -------------------------- EXAMPLE 2 -------------------------- - cat /var/log/fail2ban.log | Find-IPv4Address | Sort-Object -Property @{Expression = { $_ -as [System.Version] } } -Unique + cat /var/log/fail2ban.log | Find-IPv4Address | Sort-Object -Property @{Expression = { $_ -as [System.Version] } } -Unique + +2.90.110.124 +14.184.248.97 +14.186.84.158 +27.147.226.173 +37.144.205.31 +39.59.34.40 +41.228.238.217 +...