mirror of
https://github.com/Brandon-Rozek/website.git
synced 2025-10-10 06:51:13 +00:00
Medium syndication metadata
This commit is contained in:
parent
c5b2488589
commit
9bf7cfb744
14 changed files with 82 additions and 64 deletions
|
@ -1,9 +1,12 @@
|
|||
---
|
||||
title: "Quick Bash: Validate IP Address"
|
||||
date: 2020-12-19T20:15:24-05:00
|
||||
date: 2020-12-20 01:15:24
|
||||
draft: false
|
||||
tags: ["Bash", "Networking"]
|
||||
medium_enabled: true
|
||||
medium_post_id: c7a65890d9d9
|
||||
tags:
|
||||
- Bash
|
||||
- Networking
|
||||
title: 'Quick Bash: Validate IP Address'
|
||||
---
|
||||
|
||||
`ipcalc` is a terminal tool that lets you validate an IP address. This proves useful to me as I have scripts that automate certain remote tasks given an IP address. Instead of trusting that an argument passed is a valid IP, why not check it?
|
||||
|
@ -24,5 +27,4 @@ if ! ipcalc -cs "$IP" ; then
|
|||
echo "Invalid IP Address"
|
||||
exit 1
|
||||
fi
|
||||
```
|
||||
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue