script.sh
来源:互联网 发布:淘宝助理创建宝贝教程 编辑:程序博客网 时间:2024/05/20 22:03
script.sh
要求:
1.script.sh /mnt/userfile /mnt/passfile
2.当要建立的用户已经存在 不做任何操作
3.当脚本后所指定文件个数少于2个
Please give me userfile or passwd file
4.当所给文件的行数不一致
/mnt/userfile's line is different /mnt/passwdfile's line
脚本内容:
#!/bin/bash
for username in $(/mnt/userfile)
do
if [-n $username ]
echo $(/mnt/passfile )
else
return 0
if [ $# !=2 ];
then
echo " Please give me userfile or passwdfile ! "
exit 1;
fi
done
阅读全文
0 0
- script.sh
- script.sh
- script.sh
- script : check_conn.sh
- 编写 script.sh练习题
- shell script lsco_restore.sh
- script.sh脚本实现功能
- script 的运行方式差异 (source, sh script, ./script)
- shell script执行方式差异(source, sh script, ./script)
- sh script: 控制文件调用 nohup 命令
- 脚本练习-Script.sh批量创建用户
- shell中source和sh script的区别
- HowTo: Run the .sh File Shell Script In Linux / UNIX
- iOS开发之Documentation.build/Script-BC552B3A15.sh:
- sh
- What is the difference between ./ and sh to run a script?
- [解决方法]shc -f xxx.sh shc: invalid first line in script
- /Debug-iphonesimulator/✖️✖️.build/Script-817CB3AD1B3BC68D0004AFEA.sh: line 2: ./.../.framework
- SE02 Unit04 多线程基础
- thinkphp3.2.3 成功对接支付宝接口
- codeforces D 287 Shifting
- 关于7z的命令行操作
- PAT乙级真题及训练集--1001. 害死人不偿命的(3n+1)猜想 (15)
- script.sh
- 大二总结
- Python 装饰器
- HTML入门
- TCP、UDP数据包大小的限制
- WebSocket和kafka实现数据实时推送到前端
- Kubernetes基金会托管容器网络CNI
- 享元模式-Flyweight
- PM&PL&SE&PG