linux shell scripts
来源:互联网 发布:聚划算自动抢购软件 编辑:程序博客网 时间:2024/05/20 09:09
命令替换和输出捕获 `command` $(command), $()是posix shell的标准, `command`是bash shell的标准。
hard quote 单引号中的所有字符都不被shell解析, soft quote 双引号,部分字符还是会被shell解析(如$), escape / 紧接在反斜线后面的字符是不被shell解析。
fork source exec。挡在command line(主shell)中键入 ./test.sh时,test.sh是以fork方式运行,也就是在sub-shell(子进程)中运行,任何在sub-shell中改变的环境变量只在sub shell中有效对父shell是无效的,除非用export var使其在父 shell中生效。 当以 souce ./test.sh(与. ./test.sh等价,.意味着在本shell中运行)运行时,test.sh是在父shell中运行 ,因此任何在test.sh做的改变都在父shell中生效。exec ./test.sh意味着 test.sh覆盖了父shell。
2)字符串
- linux shell scripts
- 【Linux】bash shell scripts
- LINUX(4) shell scripts
- Linux & Shell (2) Write basic shell scripts
- Linux学习笔记(十)Shell Scripts
- Linux shell script 1 basic scripts
- shell scripts
- shell scripts
- Shell Scripts
- shell scripts
- 鸟哥的Linux私房菜10.19 Shell Scripts
- 鸟哥linux学习笔记之学习Shell Scripts
- 一天一linux命令(17) shell scripts 脚本
- Linux下shell scripts的调试方法小结
- linux shell scripts:Syntax error: Bad for loop variable
- Linux shell scripts中条件判断语句中的常用参数
- Linux学习笔记(13)——shell scripts
- Note For Linux By Jes(7)-学习 shell scripts
- Tip #6 用ASP.NET AJAX判断当前浏览器类型
- 试了试糖果浏览器
- 鼠年最后的纪念
- 糜烂@我@ 2008
- 一个PlaySound示例:
- linux shell scripts
- WinCE驱动开发问题精华集锦二
- Tip #7 使用ASP.NET Ajax的trace
- WinCE驱动开发问题精华集锦一(转载)
- goodboy的编程之路
- 一、Struts 2 基础---4.Struts 2中的Action
- SDK编程中窗口ID,句柄,指针三者相互转换函数
- Jdk设置和第一个Java程序:HelloWorld
- 掌握 Ajax,第 1 部分: Ajax 入门简介