linux sh hello world
来源:互联网 发布:知乎live可以重复听吗 编辑:程序博客网 时间:2024/06/03 20:59
1.开头需要 #!/bin/bash
2.注释 # 开头
3.变量都是字符串,直接定义 a="hello" 使用 echo ${a} 注意:等号两边不能有空格 字符串尽量使用双引号
4.echo 输出
5.使用 $1 取得第一个参数
6.代码中可以直接使用 linux 命令
#!/bin/bash
# this is my first sh
hellostr="hello ${1}"echo ${hellostr}
0 0
- linux sh hello world
- Linux "Hello World !"
- linux NASM Hello, world!
- Linux hello world 驱动
- linux 驱动 hello world
- linux modules hello world!
- linux hello world 1
- Linux C hello world
- hello world linux汇编
- linux python Hello World
- Linux入门-hello world
- linux 驱动程序的hello world
- Linux 下的“Hello world!”
- Hello World: start running linux
- Hello world 之Linux驱动程序
- Linux下的“Hello world!”
- linux gcc /n Hello world!
- hello world开始linux驱动
- 静态库
- 基于WAMP安装pear
- 如何学好C++
- Oracle新建用户、角色,授权,建表空间
- java强引用、软引用、弱引用、虚引用
- linux sh hello world
- 自定义背景文件,android:shape的使用!
- Button的四种监听方式
- 阿里巴巴数据产品经理工作总结
- windows7下,使得excel能否在不同窗口中打开多个文件
- MySQL中Index与Key的区别
- 面试总结和心得
- CoreImage
- MVC之EF(增删改显)