shell script 設計進度列進度列:#!/bin/bash
# Author : Teddy Skarin
# 1. Create ProgressBar function
# 1.1 Input is currentState($1) and totalState($2)
function ProgressBar {
# Process data
let _progres...
#!/bin/bash
read -p "Give me an IP : " IP
while [ 1 ]
do echo "$IP" | egrep -q '^([0-9]{1,3}\.){3}[0-9]{1,3}$'
if [ $? -eq 0 ]
then valid=1
for number in ${IP//./ }
do if [ ...