ip check update

This commit is contained in:
변정훈
2023-06-30 11:24:10 +09:00
parent 8b1b4c1622
commit c9a21aa127
2 changed files with 4 additions and 5 deletions

View File

@@ -1,6 +1,5 @@
마지막 수행 시간 : 2023-06-30-11:18:40 AM<br><br> 마지막 수행 시간 : 2023-06-30-11:23:05 AM<br><br>
|IP Address|Check Result| |:---|:---|
|------|------|
|10.10.43.100|사용 중| |10.10.43.100|사용 중|
|10.10.43.101|사용 중| |10.10.43.101|사용 중|
|10.10.43.102|사용 가능| |10.10.43.102|사용 가능|

View File

@@ -4,8 +4,8 @@ start_ip="10.10.43.100"
end_ip="10.10.43.253" end_ip="10.10.43.253"
echo "마지막 수행 시간 : $(date +%Y-%m-%d-%r)<br><br>" > README.md echo "마지막 수행 시간 : $(date +%Y-%m-%d-%r)<br><br>" > README.md
echo "|IP Address|Check Result|" >> README.md echo "|<span style="width: 300px;">IP Address</span>|Check Result|" >> README.md
echo "|------|------|" >> README.md echo "|:---|:---|" >> README.md
for ((i=${start_ip##*.}; i<=${end_ip##*.}; i++)); do for ((i=${start_ip##*.}; i<=${end_ip##*.}; i++)); do
ip="${start_ip%.*}.${i}" ip="${start_ip%.*}.${i}"