3. Compile and test the results:
A. Empty command line variables.
B. Open a command line window and change the directory (CD) to the location of the SLUtil.exe file (... \debug\slutil.exe)
C. Open the Library shell folder next to the Command Line
How do you handle shell programming, which often encounters a situation where the number of parameters is variable? Shift is about to shine,
.I said, the shell is my conventional weapons, although not yet proficient, but I love the shell of the
e-mail server is placed in the intranet map of the company IP, open port, has been the constant violence to crack, depressed dead. One of the IP has 6 w many times Ah, thereby using the script to mask IP access.
1. The script is as follows:
#!
Rman backup Script
#!/bin/bash
su-oracle
Third backup save platform automatically cleans up expired backup files
#! /bin/bash for
file in ' Ls/orabak '
does
if [[${file:0:2} = = ' db ']];then
One. If structure
1. Single branch structure
If condition
then
statement1
statement2
...
Fi
2. Dual-Branch structure
If condition
then
statement1
statement2
...
else
statement3
statement4
fi
3. Multi-branch
In the shell script to do a variety of tests frequently, test the format of the statement:
(1) Test
(2) [
(3) [[
Three kinds of differences, in the third can be a wildcard matching, and &&,| |,, the operator can also be normal presence in [[]],
1. Write a script, implement batch add 20 users, username user1-20, password is user followed by 5 random characters2. Shell Utility case: Batch generation of random character files3. Please use at least the 两种 method to achieve! Change all of the
Prepare 3 Machines1.linux-node1 ip:10.89.3.108 (Springboard machine)2.weblamp ip:10.89.3.1003.weblnmp ip:10.89.3.101The 3 system environments are as follows:[Email protected] ~]$ cat/etc/redhat-release CentOS release 6.8 (Final)1) First do SSH key
Today read the Old Boys Education blog http://oldboy.blog.51cto.com/ in a shell implementation of Nginx reverse proxy back end Realserver Health check of the article, According to one of the students Friends of the idea of writing a
string-to-integer type! This requirement should be common in programming languages, and it's too cumbersome in the shell. Someone asked why the conversion? The problem I encountered is that the number of parameters is $ #需要进行整型运算, while $ #取出来的却是字符串,
https://docs.mongodb.com/getting-started/shell/query/OverviewYou can use the find () method to issue a query to retrieve data from a collection in MongoDB.All queries in MongoDB has the scope of a single collection.Queries can return all documents
Today, writing scripts, encountering awk script to the shell of the case, the internet Google, found that there are some problems, through the pipeline, through Eval, feeling is very complex. So I thought to try it with read.First, a test file
HBASE table Structure Management detailed explanation List List of tables1 hbase (main):001:0> list 1 table 2 cdr 3 noc 4 2 row (s) in 0.1800 seconds 5 Span
The #!/bin/bash# command matches the host execution Module script path and must be placed in the Salt directory under the source hostname modified hostname #salt tt_ld_lm_lc_1 cmd.script salt:// init/rename.sh ' tt_ld_lm_lc_1
Shell commands are generally divided into built-in (self-contained) and exotic (except those that come with the Yum installation later)How to produce a built-in command: $ man Bash 1 (why add a 1 here because of the manual format)The composition of
Linux classes on the assignment Wednesday, if there is a poor consideration to the place, please do not hesitate to enlighten.Shell Processing Text See this blog for related frequently used commands##假设输入两个參数 is the first to count the number of
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