What does a double colon mean in a shell script?

This is the code development style, in fact, is a function name, equivalent to the underscore division, but read into the package name after the meaning of different. This is defined in accordance with Google's shell development

Linux Bash shell string split substring etc (RPM)

Original 52779364The problem with script development is that the string splitting operation in the original Java (substring indexof, etc.) does not know what to do (e.g./a/b/c/d.txt I want to know the name of the file)Query information that the

Linux shell scripts-variable speed entry and Advanced (2)

1,$$: Displays the current process ID number[Email protected]:~/linux/shell/how_to_use_var$CatShow_pid.SH #!/bin/BashEcho $$Sleep the[email protected]:~/linux/shell/how_to_use_var$ bash show_pid.SH&[1]9401[email

Shell's Export command

Export Feature Description: Sets or displays environment variables.syntax:export [-fnp][variable name]=[variable setting value]Additional Note: when executing a program in the shell, the shell provides a set of environment variables. Export can add,

Linux (21) Shell programming

21.1 Why to learn shell programming(1) Linux OPS engineers need to write shell programs for server management when managing server clusters.(2) for Java EE and Python programmers, the need for work, your old assembly requires you to write some shell

Unbound DNS installation Control shell script

#!/bin/bashCase "$" in-a) shiftIf [$#-lt 1]Thenecho Please input parameter: ' "xxx.cn A 192.168.22.22" 'Elseifs=$ ' \t\n 'for param in [email protected]DoA=echo ${param%%‘ ‘*}if testcat /usr/local/etc/unbound/unbound.conf | grep

Shell Project Distribution System-expect (next)

[TOC]V. Automatic synchronization of files 5.1 configuration scriptsThe core command is to use the Rsync service.[[email protected] sbin]# vim 4.expect#!/usr/bin/expectset passwd "123456"spawn rsync -av [email protected]:/tmp/12.txt /tmp/expect

Linux Lab three shell programming (1)

1. Practice command history, aliases, and special character usages in the shell (4th. 4.2, Section ~4.5)(1) Defining aliasesThe definition of an alias is that it is often enclosed in single quotation marks to prevent the shell from ambiguity about

Shell Project-Distribution system-expect

[TOC]Distribution System-expect What is a distribution system? Now some of the larger enterprises, most of the use of load balancing, and sometimes because some programs to change, or some bug to modify, if only a few servers, it is very

Shell special Symbol Cut command, sort_wc_uniq command tee_tr_split command

One, Shell special character _cut commandDe-Semantic characters:[[email protected] ~]# c=\ $a \ $b//And #c = ' $a $b ' effect[Email protected] ~]# echo $c$a $bPipe characterCut split[Email protected] ~]# cat/etc/passwd |head-2 |cut-d ":"-F 1//Take

Shell introduction, History, aliases, wildcards and redirects

Shell Introduction The shell is a command interpreter that provides interaction between the user and the machine Support for specific grammars, such as logical judgments, loops Each user can have their own specific shell CentOS7

Shell Programming (iv): variables

Variable Variables are abstract concepts that can store calculated results or can represent values. Variables can be accessed by variable names. Variable declarationDeclaring variables is generally used in the following

HBase starts the HBase Shell Run command to the class path contains multiple SLF4J bindings. Error

1:hbase start hbase Shell Run command class path contains multiple slf4j Bindings. Error, because the jar package conflicts, so for the jar package with Hadoop, you can delete the other jar package, if you are not sure whether the deletion is

Shell script creates a virtual machine and configures the network card IP address (two scripts)

###################### #脚本1: Creating a virtual machine kvm##########################!/bin/bashQcow2_dir=/var/lib/libvirt/imagesRead-p "Please enter the virtual machine number:" Num #主机号If [$num-lt 9];thenNum=0$num # #主机号FiIf [-Z ' $num '];thenecho "

Script passing parameters to the Linux shell script

In the previous command Ls/var then in this command LS is the command keyword,/var is the parameter. So how do we do parameter passing when we're making a shell script ourselves?In bash, the first parameter is automatically placed in $ $, the second

Hbase Shell failed to start

Recently a new deployment of the gateway, the user in the implementation of the HBase Shell mode connection HBase, error[[email protected] lib]$ hbase shellslf4j: class path contains  Multiple slf4j bindings.

Shell script Common script: while

Whileconditional SentenceGrammar:Condition to meet always doneWhile conditionDoinstructionDone==========Conditional satisfaction exit (rare)Until conditionsDoinstructionDone  Script instance: Daemon monitoringSleep: Print per secondUsleep:

Shell condition judgment

1. string Judgments STR1 = str2 True when two strings have the same content, length Str1! = str2 True when strings str1 and str2 are unequal -N str1 True when the length of a string is

The role of various parentheses in the shell (), (()), [], [[]], {}

One, parenthesis, parentheses ()1, single parenthesis ()?? ① Command Group. The commands in parentheses will run in a new sub-shell sequence. So the variables in parentheses cannot be used by the rest of the script. Multiple commands in parentheses

The shell beautification tutorial under CentOS

Introductory ArticleLinux, we generally use the command line to operate, a good-looking command line, can make our work comfortable, this tutorial can be made to complete the command line style:Of course, you can change the more cool command-line

Total Pages: 541 1 .... 126 127 128 129 130 .... 541 Go to: GO

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.