Linux
oliver233
天道酬勤
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
shell编程 批量创建用户(不需要文件操作)
#!/bin/bash read -p "qianzhui: " u_name read -p "weizhui: " nu_nu read -p "startnum: " nu_start read -p "weishu: " nu_amount nu_end=$(($nu_start+$nu_amount-1)) for (( i=$nu_start;i<=$nu_end;i=i+1)原创 2015-12-12 16:15:03 · 846 阅读 · 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 · 464 阅读 · 0 评论 -
shell编程Linux中批量创建用户
if [ -f "accountfile" ];then mv $accountfile "$accountfile"`date +%Y%m%d` fi touch "$accountfile" read -p "qianzhui: " username_start read -p "weizhui: " nu_nu read -p "start num:" nu_start read -p原创 2015-12-09 22:26:52 · 1885 阅读 · 0 评论
分享