Medium syndication metadata

This commit is contained in:
Brandon Rozek 2023-03-10 12:41:04 -05:00
parent c5b2488589
commit 9bf7cfb744
No known key found for this signature in database
GPG key ID: 26E457DA82C9F480
14 changed files with 82 additions and 64 deletions

View file

@ -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
```
```