Because the individual station can not guarantee higher availability, there may be data easy problems, so it is necessary to achieve backup database needs, so I found some information on the Internet, combined with my actual situation, through the
Today, to use the shell to do some auxiliary work, long time not to use, a little forgotten ...Here's a summary of today:1. If the brackets of the If judgment to leave enough spacesuch as if space [space content space];then........Fi2. The condition
The test command usage. Function: Check file and compare value 1) Judge the expression if test (expression is true) if test! expression is false test expression 1–a expression 22 expression is true test expression 1–o expression 22 expression has a
Functions are the essence of the shell, and with functions and libraries, the shell handles complex problems as well as the compiler language, gravitated the importance of shell functions and libraries.1 Definition of functionRecommended UseHow to
The variables of 0.shell are different from the environment variables, and the user environment area exists. Variables are assigned in the following way: Variable_name = variable_valuea= "Hello" $a the value of a on the variable, and several Linux
Shell Script (iv)(7) TR command#实现字符转换功能#-c string: Inverse string character set, that is, all character sets except for the string#-d string: Delete all occurrences of characters in string#-s: Deletes all occurrences of a sequence of characters,
After the password expires, change the password to the original password, the server a lot of work, write scripts to complete.After logging in, modify the prompt to: doraemon# convenient expect matchModify Lang=c, prompt for English to prevent
Introduction to the sceneUse Cygwin under Windows, use Apktool to repackage apk; Way OneCD D:CD path/to/apk/in/dApktool D name.apk Way TwoDrag the file into the Cygwin window to delete the trailing file nameCTRL + ACD SPACEApktool D name.apk Mode
1.7 arrays and associative arrays
An array is a very important part of Shell scripting, and it uses indexes to store multiple independent independent data as a collection. An ordinary array can use integers only as an array index, and
Learning cycle, see a lot of for,while, or until, and select with less, here is a little summary of the next select this cycle.Basic structure:Select VALUE in LISTDoCOMMANDDoneAnd the reality out of the structure is probably a number before the
Case Flow control:Case structures are used for condition judgments in a variety of situations. Similar to switch/case statements in other programming languages, but it is very different from the grammatical form.Case string inModeStatement;;Mode 2 |
HBase provides a shell terminal to interact with the user. Use the command Hbaseshell to enter the command interface. You can see the Help information for the command by performing a helper. Demonstrate the use of hbase with an example of an online
1.2 Terminal printing
A terminal is an interactive tool that allows users to interact with the shell environment. Printing text in a terminal is a basic task that most shell scripts and tools need to perform daily. Through the terminal
A variable definition1 explicitly defined variable=xxx no spaces2 Read variable ReadingThe following two lines of code are written, reading name and namefamilyRead-p "Please input your name:" NameRead-p "Please input your whole name:" Name familyRun
Shell-based variablesVariable typeShell variables include environment variables, location variables, pre-defined variables, and custom variables.Environment VariableShell environment variables are a type of Shell predefined variables used to set 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