Linux
oliver233
天道酬勤
展开
-
shell编程 批量创建用户(不需要文件操作)
#!/bin/bashread -p "qianzhui: " u_nameread -p "weizhui: " nu_nuread -p "startnum: " nu_startread -p "weishu: " nu_amountnu_end=$(($nu_start+$nu_amount-1)) for (( i=$nu_start;i<=$nu_end;i=i+1)原创 2015-12-12 16:15:03 · 808 阅读 · 0 评论 -
LInux Shell编程初探
#!/bin/bash while [ "0" == "0" ] do read -p "please in put the number1 :" num1 read -p "please in put the number2 : " num2 read -p "please in put your wants : " flag原创 2015-12-05 21:14:51 · 411 阅读 · 0 评论 -
shell编程Linux中批量创建用户
if [ -f "accountfile" ];thenmv $accountfile "$accountfile"`date +%Y%m%d`fitouch "$accountfile"read -p "qianzhui: " username_startread -p "weizhui: " nu_nuread -p "start num:" nu_startread -p原创 2015-12-09 22:26:52 · 1836 阅读 · 0 评论