Bash scripting TnT

while [ "$1" != "" ]; do
    case $1 in
          --address )
               shift
               address="$1"
               ;;
          --netmask )
               shift
               netmask="$1"
               ;;
          --gateway )
               shift
               gateway="$1"
               ;;
          --dns )
               shift
               dns="$1"
               ;;
          --show-current )
               show_current
               exit
               ;;
    esac
    shift
done
bash/scripting.txt · Last modified: 2012/11/10 18:11 by a
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0 ipv6 ready