What is 21.2 shell?The shell is a command-line interpreter that provides the user with an interface system-level program that sends a request to the Linux kernel to run the program, allowing the user to start, suspend, stop, or even write programs
Conditional judgmentIf condition 1;thenCOMMANDElif condition 2;thenCOMMANDElseCommand (:): Indicates that pass does not execute any commandFiRead user input for data judgment1 Echo-N"Enter your number:"2 Read Userinput3 Expr$userinput
1. What is a shell variableSimply put, a variable is a fixed string instead of more complex content, which may also contain variables, paths, strings, and other content. Variables are places where data is stored temporarily and data tags, the stored
This script is primarily used to manually publish war packages for non-MAVEN tomcat projects,1. Upload the Test war package to the specified directory2, back up the current production code3. Automatic configuration file replacement4, the release of
8.6 Pipe symbol and job control8.7/8.8 Shell variables8.9 environment variable configuration file
8.6 Pipe symbol and job control
1. Pipe Symbol | Pass the result of the preceding command to the following commandFor example, # cat
8.10 Shell Special Symbol Cut command8.11 Sort_wc_uniq Command8.12 tee_tr_split Command8.13 Shell Special Symbol
Shell Special Symbols
* represents all characters for wildcards
? is a single character
is the
Shell Special Symbol _cut command概念:cut命令用来截取某一个字段格式:cut -d ‘分割字符‘ [-cf] n,这里的n是数字,该命令选项有如下几个:- d 后面跟分割字符,分割字符要用单引号括起来- c 后面接的是第几个字符- f 后面接的是第几个区块The Cut command uses the following
[Email protected] do]# cat/etc/passwd
Shell IntroductionThe shell is a command interpreter that provides interaction between the user and the machineFor example, we have remote login tool, it is actually a shellThe CentOS default shell is bash (Bourne Agin Shell)·Command historyHistory
Contact Linux in the sophomore time, then fascinated by the embedded Linux, the computer replaced with Linux system, learning the basic knowledge of Linux, learning Linux commands, learning shell, bubble forum, so slowly the normal work of learning
1. TopicsThere are log 1.log, part of the following:112.111.12.248 - [25/Sep/2013:16:08:31 +0800]formula-x.haotui.com "/seccode.php?update=0.5593110133088248" 200"http://formula-x.haotui.com/registerbbs.php" "Mozilla/4.0 (compatible; MSIE 6.0;
1. In most cases, UNIX system commands accept input from your terminal and send the resulting output back to your terminalThe list of REDIRECT commands is as follows:2. Output redirection: Redirects are generally implemented by inserting specific
Array Declaration ArrayDeclare-a Array_NameDeclare-a array_name: Associative arrayNote: The two cannot be converted to each otherArray name and subscript (index)Index: Numbering starting from 0, which is a numeric indexNote: Indexes can support the
There are times when a feature is embedded in the Java function, which is implemented by a shell script. At this point, Java support for scripting calls is required.Test environmentUbuntu16.04 I3-6100,12GBHello WorldTake a look at a basic example
A few days ago, a classmate in the group to raise an egg problem, the original question is as follows:There was a basket of eggs,One 1, just take it out.2, 2, take it, just finish it.3, 3, take it, just finish it.4 of 4, 2 left.5 of 5, 4 left.6, 6,
How can I implement real-time alarm functions through shell scripts and enterprises ?, Shell Information
At work, we will have some applications running on the server online, so these applications have problems. For example, after the memory and CPU
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.