shell script学习
来源:互联网 发布:郑州网络诈骗最新新闻 编辑:程序博客网 时间:2024/05/21 07:58
1、第一个hello world
#!/bin/bashecho 'hello world'#!/bin/bash:代表的是使用的是哪一种shell
2、变量内容由使用者决定(使用定义过的变量用在变量名前加$)
#!/bin/bashread -p "please input your firstname:" firstnameread -p "please input your lastname:" lastnameecho "\n Your full is: $firstname $lastname"
3、数字运算
#!/bin/bashread -p "first number: " firstnumread -p "second number: " secondnumtotal=$(($firstnum*$secondnum))echo "The result of $firstnum * $secondnum is $total"运算方式:$((运算内容))
阅读全文
0 0
- Shell Script 的学习
- 学习Shell script
- shell script学习备忘
- 学习shell script
- 学习 shell script
- Shell Script 学习整理
- shell script 学习
- 学习shell script
- Linux shell script学习
- 学习shell script
- shell script 学习记录
- Shell Script 学习笔记
- 学习shell script
- Day4:学习shell script
- 学习shell script
- shell script学习
- Linux的Shell Script学习
- shell script学习笔记1
- java开发必会的Linux命令
- java基础-反射2(反射,反射操作对象,Class对象的使用,类型信息的获取)
- 计算机推荐书籍
- Glide、Picasso、Fresco进阶
- CentOS6.6上MySQL进程莫名挂起的诡异问题和处理
- shell script学习
- 傅立叶变换的实质-正交之美
- 获取地址栏
- 深度优先搜索 dfs Monk and Graph Problem
- MYSQL 查看最大连接数和修改最大连接数
- LeetCode【35】Search Insert Position
- HDU1251 统计难题(map)
- 关于php文件查找每一行的字符串与指定文件中的每一行的字符串
- CRM客户管理系统又翻天了