shell基础
2014-03-14 14:01
218 查看
1.数组定义
a = (1 2 3)
注意: '='等号左右不能有空格,否则报错.
2. cat --help
-A, --show-all equivalent to -vET
-E, --show-ends display $ at end of each line
-T, --show-tabs display TAB characters as ^I
-n, --number number all output lines
-b, --number-nonblank number nonempty output lines
3.shell多行变量赋值
a=`cat <<EOF
123
345
EOF
`
echo "$a" --> 带换行输出
4.
a = (1 2 3)
注意: '='等号左右不能有空格,否则报错.
2. cat --help
-A, --show-all equivalent to -vET
-E, --show-ends display $ at end of each line
-T, --show-tabs display TAB characters as ^I
-n, --number number all output lines
-b, --number-nonblank number nonempty output lines
3.shell多行变量赋值
a=`cat <<EOF
123
345
EOF
`
echo "$a" --> 带换行输出
4.
相关文章推荐
- 【类unix系统shell基础】1.05命令行基本组成元素
- Shell脚本基础1-先清楚几个概念
- shell脚本编程基础(一)----构建基本脚本
- Linux-shell基础复习笔记
- [Shell]函数基础
- Shell基础笔记
- shell 学习笔记(1) - 基础
- Shell脚本编程基础
- shell 基础(一)
- Linux技术研究-基础篇(进程和shell及软件安装)
- shell基础和文件
- shell脚本基础应用(二)if单分支,双分支,多分支语句
- 第一章 Shell基础知识
- linux base shell 基础语法
- linux学习之旅(二)&& shell命令行基础讲解
- 《UNIX-Shell编程24学时教程》读书笔记Chap1,2 Shell基础,脚本基础
- Linux 基础知识:Bash Shell 内置命令
- shell基础入门(一)
- shell基础学习总结(一)
- Linux基础 -- shell命令