The 1 script is as follows[[email protected] ~]# vim 99.sh #!/bin/bash # 9*9 Table # 2015.5.26 by Luzhi for i ' {1..9}do for J ' {1..9} do If [$j-le $i] then c=$ (($i * $j)) ECHO-E-n "$j * $i = $c \ T" fi do echo "" Done2 Operating effect650)
Transferred from: http://blog.csdn.net/wklken/article/details/6562098Sort,uniq,join,cut,paste,splitCommand--sortSort classifies many different fields in different column orderCommand format:Sort–cmu–o Out-putfile [Other options] *POS1 *pos2
Business backgroundThe schedule.sh script is responsible for scheduling the execution of the user's trajectory engineering script, and intercepts some of the code as
Original address: http://www.cnblogs.com/chengmo/archive/2010/10/02/1841355.htmlString-related operations are often involved in the shell batch process. There are a lot of command statements, such as: awk,sed can do string various operations. In
View types of commands: type[[Email protected] ~]# type CDCD is a shell builtin[[email protected] ~]# type Lsls are aliased to ' ls--color=auto ' [[Email Protected] ~]# type-a Lsls is aliased to ' ls--color=auto ' ls is/bin/ls[[email protected]
Transferred from: Http://blog.163.com/[email protected]/blog/static/132229655201131055455754/Numeric operations:Only integer arithmetic is provided in bash, and the shell is implemented by the two commands of Let and expr .Use the format: let "x=
How to determine the number of input parameters in a shell script submission: Junjie font: [Increase decrease] type: Reprint
This article mainly introduces the method of judging the number of input parameters in shell script, using the built-in
Wrote a script to view the APK signature with the shell. The code is very small and simple.Supports recursive directory queries#!/bin/bash# how to use the./getcertificate.sh xx.apkget_signature () {path= ' jar tf ' $ ' | grep RSA ' #查找apk中RSA文件 jar
Advanced variable contains three parts1. Variable expansion2. Command replacement3. Arithmetic ExpansionIn the bash shell, the $ operator triggers the above three extensions in the following basic form:Basic types of extensions examples${variable
######### #20150419 ############################# #题目: Variable a= ' a/b/c ' how to intercept get c @@@@@@@@@@@@@@@@ From the operation and maintenance class 21 long wing finishing @@@@@@@@@@@@@@@@@@@[[email protected] shell]$ uname -r 2.6.32-504.
First, what is a variableShell programming language is a non-type interpreted language, unlike the C++/java language programming requires the declaration of variables, the shell assigns a variable, in effect, it defines the variable, in all Linux
The shell program mounts the iso image file and configures the local yum source,
write a script, mainly do 1. Mount the local iso image file 2. boot the local iso image and mount it automatically 3. Use the iso image to configure the local yum
The shell script is used to add a user to delete a user's deleted files,
#/Bin/bash # DEBUG = 0ADD = 0DEL = 0RM = 0 while [$ #-gt 0] docase $1 in-v |-verbose) DEBUG = 1 shift ;; -h | -- help) # help document echo "'basename $ 0' -- add LIST -- del
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.