The Bash shell script programming knowledge points are as follows (beginner, incomplete, welcome to the discussion supplement):Shell IntroductionA simple introduction to scriptsVariables and referencesArithmetic operationsInteractive
$CatOpenstack_install.SH #!/usr/bin/EnvBashfunctionUsage {Echo "usage:$0 [optaion] ..." Echo "Master Install OpenStack Master in the This system." Echo "COMPUTE install OpenStack compute in the This system."Exit}functionprocess_option { Case " $"
Introduction [54,17] Bash itself does not support regular expression regex, while some tools under the shell support the interpretation of Regex , and the use of regex is Shell commands and tools , such as Grep,sed,awk. but the shell supports
Suppose we define a variable as:File=/dir1/dir2/dir3/my.file.txt can be replaced by ${} with different values: ${file#*/}: Delete the first/its left string: dir1/dir2/dir3/my.file.txt${file##*/ }: Delete the last/ and its left string:
Not long ago, once searched a blog is to read the configuration file, http://www.cnblogs.com/bo083/archive/2012/11/19/2777076.html, used to now, feel very convenient, thank the author.Now, a web interface is required to allow the user to modify a
In the Linux production environment, there are the following such a common operations need to work.Every once in a while, such as two hours, the log file to generate the log per second (this is assumed to be testfile.out, the absolute path
You often have to connect to Windows remotely, so rdesktop is a must.Recently installed the Gnome interface of the CENTOS7, found that the Rdesktop command has been used to become rdesktop-vrdp, but can be used on the line.To add a GUI to the
After you install Lync2013 on Windows R2, the Lync Management Shell does not open properly, such as:650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/41/5A/wKioL1PTfSrS4XniAAC4xFArUeA489.jpg "style=" float: none; "title=" 1.jpg "alt=" Wkiol1
Recently, I started to get started with some shell commands because of compiling some files. It seems amazing and the usage is quite large. So I made some notes and the command sequence may be messy, the function is not fully functional. 1. Cut
This article is based on the "Unix/Linux Programming Practice tutorial". This is a book that explains programming for Unix systems. It focuses on practice and is difficult to understand. We recommend that you read this article, there will be a
Reprinted: http://blog.chinaunix.net/u/22677/showart_1076318.html
1. IntroductionSed is a non-interactive editor. It does not modify the file unless you use shell redirection to save the results. By default, all output rows are printed to the screen.
Sort command
Sort [Option] [input file]
Option:
-C: Check whether the file has been sorted. If not, output the first unsorted record.
-K specifies the sorting domain
-M merges two sorted files, and the merged files are also sorted, such as sort-M A1
Bytes --------------------------------------------------------------------------------------------------------
I. History commands
History # view History commands
History-C # Clear history commands
History-W # exit without waiting. directly
Hbase is an open-source implementation of Google bigtable. It uses hadoop HDFS as its file storage system, hadoop mapreduce to process massive data in hbase, and zookeeper as a collaborative service.1. IntroductionHbase is a distributed,
A regular expression is a text mode consisting of common characters (such as characters A to Z) and special characters (such as metacharacters. This mode describes one or more strings to be matched when searching the text subject. A regular
Note: Here are the shell notes I made. Next, we will provide a series of notes.
Shell is a scripting language, so there must be an interpreter to execute these scripts. Common shell script interpreters in Unix/Linux include bash, sh, CSH, and KSh.
Last week, the boss pressed down the task and asked him to write a Web Crawler to crawl the data information of an industry website. Since I only use the shell programming language, other programming languages have never been involved, so I can only
[Shell] if common judgment conditions and shellif judgment ConditionsIF judgmentI have also written a simple shell script before, and it is not transferred to O & M. It has less work related to the system, so it is not very skilled.Recently, as the
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