设为首页 加入收藏

TOP

切换ip的3个脚本
2014-11-23 21:40:06 来源: 作者: 【 】 浏览:18
Tags:切换 脚本

第一个文件storeip.sh,用来保存记录的



#!/bin/sh


printf "Enter the Name :"


read iplocal


printf "Enter the IP:"


read ip


printf "Enter the netmask:"


read mask


printf "Enter the gateway:"


read gate


if [ ! -f ipdata ] ; then


touch ipdata


fi


num=`wc -l ipdata | awk ' { printf "%s", $1=$1+1 } '`


printf "$num\t$iplocal\t\t$ip\t$mask\t$gate\n" >;>; ipdata


】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇JAVA学习小记 下一篇Linux设备驱动编程内核模块的学习

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: