Home
|
简体中文
|
繁体中文
|
杂文
|
Search
|
ITEYE 博客
|
OSChina 博客
|
Facebook
|
Linkedin
|
作品与服务
|
Email
第 1 章 Bash Shell
上一页
下一页
第 1 章 Bash Shell
目录
1.1. bash - GNU Bourne-Again SHell
1.1.1. -n 检查脚本是否有语法错误
1.1.2. -x 显示详细运行过程
1.2. Introduction
1.2.1. chsh - change login shell
1.2.2. test 命令
1.2.3. I/O 重定向
1.2.3.1. error 重定向
1.2.3.2. 使用块记录日志
1.2.3.3. tee - read from standard input and write to standard output and files
1.2.3.4. 创建文件
1.2.3.5. 快速清空一个文件的内容
1.2.4. pipes (FIFOs)
1.2.5. mktemp - create a temporary file or directory 临时目录与文件
1.2.6. History 命令历史记录
1.2.6.1. .bash_history
1.2.6.2. .mysql_history
1.2.7. hash - hash database access method
1.2.8. prompt
1.3. variable
1.3.1. 表达式
1.3.2. Internal Environment Variables
1.3.3. set 设置变量
1.3.4. unset 变量销毁
1.3.5. 设置变量默认值
1.3.6. export 设置全局变量
1.3.7. declare
1.3.8. 系统变量
1.3.9. Numerical 数值运算
1.3.10. Strings 字符串操作
1.3.10.1. ##/#
1.3.10.2. %%/%
1.3.10.3. :n1:n2
1.3.10.4. #
1.3.10.5. example
1.3.10.6. 计算字符串长度
1.3.10.7. 字符串查找替换
1.3.11. Array 数组
1.3.11.1. 拆分字符串并转换为数组
1.3.11.2. 数组转为字符串
1.3.12. eval
1.4. conditions if and case
1.4.1. if
1.4.2. case
1.5. Loops for, while and until
1.5.1. for
1.5.2. while
1.5.3. until
1.6. Functions
1.6.1. Local variables
1.7. User interfaces
1.7.1. input
1.8. Example
1.8.1. 有趣的Shell
1.8.2. backup
1.8.3. CPU 核心数
1.8.4. Password
1.8.5. processes
1.8.5.1. pid
1.8.5.2. kill
1.8.5.3. pgrep
1.8.6. Shell 技巧
1.8.6.1. 行转列,再批评
1.8.6.2. for vs while
1.8.6.3. 遍历字符串
1.8.7. to convert utf-8 from gb2312 code
1.8.8. 使用内存的百分比
1.8.9. 合并apache被cronlog分割的log文件
1.1. bash - GNU Bourne-Again SHell
1.1.1. -n 检查脚本是否有语法错误
1.1.2. -x 显示详细运行过程
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus