initial commit

This commit is contained in:
2024-03-22 07:02:10 +01:00
commit 8baec552ac
13 changed files with 623 additions and 0 deletions

11
valid-ip.sh Normal file
View File

@@ -0,0 +1,11 @@
#!/bin/bash
# https://stackoverflow.com/questions/13777387/check-for-ip-validity
function validip () {
ip=$1
if [ -z $ip ] || ! [[ $ip =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
return 1
else
return 0
fi
}