首页 > 其他 > 详细

ABS

时间:2014-01-16 08:33:52      阅读:403      评论:0      收藏:0      [点我收藏+]

Shell: A command interpreter on Linux, also, it is a powerful programming language. A shell program is an eay to use tool for building applications by gluing together system calls, tools, utilities, and compiled binaries.

A shell script is a quick-and-dirty method of prototyping a complex application. the structure of the application can be tested and tinkered with, and the major pitfalls found before proceeding to the final coding in C, C++, Java, Perl, or Python.

No programming language is perfect. There is not even a single best language; there are only languages well suited or perhaps poorly suited for particular purposes

 

1. start with a #!/bin/bash --this list the program used to run the script

2. chmod u+x script -- add execute permission to the script

3. ./script to run the script -- must add . as the current directory is not in search path by default

4. there are a lot of special characters in bash, this characters have meta-meanings beyond its literal meaning, examples include #, [, ",‘, etc

 

The first thing in any language is variable and parameters. A variable is a label, a name assigned to a location in computer memory that holding the data.

Retrieving the value of a variable is called variable substitution. If variable1 is the name of a variable, $variable1 is the reference to its value.

ABS

原文:http://www.cnblogs.com/littledot/p/3517446.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!