shell编程第二讲
来源:互联网 发布:室内设计软件哪个好 编辑:程序博客网 时间:2024/05/01 09:19
一、第一个scripts
#!/bin.bash#Program:# this scripts is used to print hello worldPATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/binexport PATHecho "helloworld"exit 0
二、第二个scripts
#!/bin/bash#Program:# this scripts is used to print hello worldPATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/binexport PATHread -p "please input your xing: " xingread -p "please input your bei: " beiread -p "please input your ming: " mingecho "your name is : "$xing $bei$ming
三、第三个scripts
#!/bin/bash#Program:# this scripts is used to print hello worldPATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/binexport PATHread -p "please input a filename :" filenamefile1="$filename""one"file2="$filename""two"dir="$filename""three"touch $file1touch $file2mkdir $dir
四、第四个scripts
#!/bin/bash#Program:# this scripts is used to print hello worldPATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/binexport PATHread -p "please input first number: " firstnumread -p "please input second number: " secondnumtotal=$(($firstnum*$secondnum))echo "$firstnum * $secondnum is $total"
2 0
- shell编程第二讲
- Linux shell第二讲
- SOCKET编程第二讲
- shell编程第三讲
- shell编程第四讲
- shell编程第五讲
- shell编程第六讲
- shell编程第七讲
- linux网络编程第二讲
- shell编程--第二天
- 面向对象编程 第二讲091107
- Windows Shell 编程 第二章
- Windows Shell 编程 第二章
- Windows Shell 编程 第二章
- Shell脚本编程35讲视频教程
- 第二讲
- 第二讲
- Linux Shell 编程 第二部分 chapter7-12
- iOS设计模式的学习记录 (1) --- 框架模式MVC
- Intent
- 部分枚举+递推+状态压缩+uva11464
- Snake Number
- leetcode Combinations计算有多少组合
- shell编程第二讲
- asp: suggest ajax
- How to hot Restart HA after rsf config is modified
- excel中如果某列长度不够 如何统一补位
- HDOJ 1020 Encoding
- hdoj1000解题报告
- java JFileChooser与 文件过滤器FileFilter
- 判断是否RAC
- MyEclipse安装配置和使用egit与github代码托管(呕心沥血之作)