First, the regular expression:Metacharacters is a character used to illustrate the meaning of a character expression, in short, a character used to describe a character.The regular expression re (Regular expression) is a string of characters
1. Download Tomcat Download Linux version (tar.gz) from http://tomcat.apache.org/download-70.cgi link2, unzip, upload and assign permissionsUnzip, use WINSCP to upload the extracted installation files to the/home/software/tomcat directoryand use
#!/bin/bashtext= ' host_list ' line= ' awk ' 1 ' host_list|wc-l ' for ((i=1;iCat Host_list192.168.209.133 Root 123456This article is from the "Eight Miles" blog, so be sure to keep this source http://5921271.blog.51cto.com/5911271/1582833Shell
variables
Declaring variables:DECLARE attribute variable#attribute表示变量的属性, the common properties are as follows:#-I defines the variable as an integer;-a variable is declared as an array variable;-r declares the variable as a read-only
BASH shell command and monitor the DF and du of that point The first two describes the bash Shell's process monitoring instructions, but sometimes you need to know how much disk space you have on a device. The DF command is introduced first:DF
Boss let me put the information in the log summary, good trouble, wrote this script to help work.Need to improve: 1. Crawl log time, only the last time, and this script will catch2. Requires two time difference (e.g. 15:23:34 and 23:23:34), not
Shell script: Write data to disk in bulkFirst, about this articleThe monitoring system to be done requires monitoring the usage of disk space and alerting. When testing this feature, it is necessary to simulate two scenarios: one is the need to
Very good!!Very good!!DeleteCTRL + D deletes the character at the cursor location equivalent to VIM x or DLCTRL + H deletes the character in front of the cursor, which corresponds to the HX or DH in vim.Ctrl + K Delete all characters after cursor
Ctrl+u can delete rows under the shell, if this key doesn't work, try Ctrl+xCTRL + Z You can suspend a program without terminating the program, but you can suspend the program.This job can then be switched to the foreground by the FG commandCP
First, the grammar while [Condition] # when the condition condition is established, loop until the condition is not set to stop doing #执行内容done Second, practice
Enter the user input parameters until the user enters "end" to end the loop
The script implements a 2-per-scan monitoring of the process for the specified process name and restarts once the discovery process does not exist.#!/bin/sha=10;While [[@a-gt 5]]; Doif test $ (pgrep-f $1|wc-l)-eq 2;thenSH stop.shGnome-terminal-x SH
Exit statusThe built-in command in bash does not create a new process, but it also has the exit status, usually with 0 to indicate that a success nonzero indicates a failure, although the built-in command does not create a new process, but there is
One: Shell Programming basicsShell definition: The shell is a program that acts as an interface between a user and a Linux system. It allows the user to enter commands that need to be executed to the operating system. There are many shells in the
Original blog, reproduced please indicate the sourceThe shell is the command interpreter.See which shells are supported by this system1 Tab Command completionThis can be used almost every time, for example, I have a file called file.txt, if only one
There are two ways that the JDK comes with the runtime.getruntime (). EXEC () and Processbuilder classes, which are introduced after JDK1.5, and are also recommended by the authorities to abandon the use of runtime. Today in the implementation of
Winlicense provides the strongest and most scalable technology to enable developers to securely distribute trial and full versions of their software. The following is a description of the Winlicense interface function (Chinese) I. Application
Shell-find error Parsing
I have written an article about how to use shell to regularly clear expired files. In fact, the simple find command is used.
After my colleague adopted the script, he encountered several errors when debugging the script. I
Linux uses shell scripts for the key Nohup and shellnohup tasks
There are many articles on the Internet to teach you how to use scheduled tasks, so I will not talk much about other nonsense.
I have SH for timing, but you don't know it. You must use
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