Bash

来自开放百科 - 灰狐
(版本间的差异)
跳转到: 导航, 搜索
第1行: 第1行:
 +
{{top news}}
 
{{SeeWikipedia|Bash (Unix shell)}}
 
{{SeeWikipedia|Bash (Unix shell)}}
{{SeeWikipediaChinese}}
 
  
 
Bash is the shell, or command language interpreter, that will appear in the GNU operating system.Bash is an sh-compatible shell that incorporates useful features from the Korn shell (ksh) and C shell (csh).
 
Bash is the shell, or command language interpreter, that will appear in the GNU operating system.Bash is an sh-compatible shell that incorporates useful features from the Korn shell (ksh) and C shell (csh).
第14行: 第14行:
 
  STR="Hello World!"
 
  STR="Hello World!"
 
  echo $STR   
 
  echo $STR   
+
 
 +
{{SeeWikipediaChinese}}
 +
 
 
  touch test.sh  
 
  touch test.sh  
 
  #!/bin/bash
 
  #!/bin/bash

2010年9月27日 (一) 02:00的版本

Wikipedia-35x35.png 您可以在Wikipedia上了解到此条目的英文信息 Bash Thanks, Wikipedia.

Bash is the shell, or command language interpreter, that will appear in the GNU operating system.Bash is an sh-compatible shell that incorporates useful features from the Korn shell (ksh) and C shell (csh).

http://www.gnu.org/software/bash/

BASH Programming

tar -cZf /var/my-backup.tgz /home/me/
ls -l > ls-l.txt
STR="Hello World!"
echo $STR  
Wikipedia-35x35.png 您还可以在维基百科上了解到此条目的中文信息 Bash 感谢, 维基百科.
touch test.sh 
#!/bin/bash
for i in $(ls); do
   echo item: $i
done
for i in `seq 1 10`;
do
   echo $i
done    
$ bash test.sh
分享您的观点
个人工具
名字空间

变换
操作
导航
工具箱