码迷,mamicode.com
首页 >  
搜索关键字:脚本逐步完善    ( 1个结果
一个脚本逐步完善的过程
1、添加10个用户user1到user10,密码同用户名;但要求只有用户不存在的情况下才能添加;1#!/bin/bash23forIin`seq110`;do4ifiduser$I&>/dev/null;then5echo"user$Iexisits!"6else7useradduser$I&>/dev/null8echo"user$I"|passwd--stdinuser$I9echo"user$Iaddfini..
分类:其他好文   时间:2014-10-03 02:32:24    阅读次数:335
1条  
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!