Skip to content

Commit

Permalink
Improved example
Browse files Browse the repository at this point in the history
  • Loading branch information
roberttoups committed Jan 27, 2021
1 parent b2271c3 commit 353de6a
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
9 changes: 9 additions & 0 deletions Docs/Find-IPv4Address.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 9 additions & 0 deletions Public/Find-IPv4Address.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
11 changes: 10 additions & 1 deletion en-US/IPv4Toolbox-help.xml
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,16 @@
</command:example>
<command:example>
<maml:title>-------------------------- EXAMPLE 2 --------------------------</maml:title>
<dev:code>cat /var/log/fail2ban.log | Find-IPv4Address | Sort-Object -Property @{Expression = { $_ -as [System.Version] } } -Unique</dev:code>
<dev:code>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
...</dev:code>
<dev:remarks>
<maml:para></maml:para>
</dev:remarks>
Expand Down

0 comments on commit 353de6a

Please sign in to comment.