System: CentOS 6.x
1. Install expect first
The code is as follows
Copy Code
Yum-y Install expect
2. Script content:
The code is as follows
Copy Code
Cat
The AR command can be used to create, modify, or present a single module from a library. A library is a separate file that contains other files that are organized according to a particular structure (referred to as member of this library file). The
Own small website runs in the Aliyun ECS above, occasionally also analyzes own website server log, looks at the website the amount of visits. See if there's any black-and-wide sabotage! So collect, organize some server log Analysis command, we can
Today to see the Unix shell example fine solution on the Youdao awk on the topic after doing it to share with you
Pre-processing documents:
Mike Harrington: (510) 548-1278:250:100:175Christian Dobbins: (408) 538-2358:155:90:201Susan Dalsass: (206)
My colleague sent a shell question to find the maximum and minimum values in a multidimensional array.such as file 99file:33 55 23 56 99234 234 545 6546 3411 43 534 33 7543 34 76 756 33343 890 77 667 55
One of my implementations:
#!
The comm command compares the data in each row of the two sorted files and displays their results, and if no arguments are specified, the Comm command reads the two files and then generates three columns of output:1> only the rows that appear in the
Manipulating the HBase database in the shell command line
Shell control
Enter the shell command line interface, execute the hbase command, and attach the SHELL keyword:
[Grid@hdnode3 ~]$ hbase shell
hbase shell; enter¨help¨for list of
Although Git is a distributed version management system, for team project development, it is common to create a git server on a separate server. Similar to Svn,git server, there are several ways of configuring it. For more information, refer to
I see in the study not only has the break and the continue existence, as well as break-n and the continue-n existence so what difference does it have.You can then write the test set code:For i in a B c DDoEcho-n $iFor j in ' seq 10 'Doif test $j-eq 5
The following instance is used in the Centos6.5 64-bit operating systemOne, the regular copy fileA. Create the tomcatback.sh file in the/usr/local/wfjb_web_back directoryFile contents:#将tomcat中的应用wfjb_web copied to the/usr/local/wfjb_web_back/tomcat_
XAMPP Default configuration Take ShellFirst, let's start with science. XAMPP (Apache+mysql+php+perl) is a powerful built-in XAMPP software Station integration package is an easy-to-install Apache release with MySQL, PHP and PERL. XAMPP is really
How to use: Date [-u] [-D DATESTR] [-S datestr] [--UTC] [--universal] [--DATE=DATESTR] [--SET=DATESTR] [--help] [--version] [+f ORMAT] [MMDDHHMM[[CC]YY][.SS]]Description: Date can be used to display or set the system's Day and time, in terms of
Popen, Pclose-pipe stream to or from a processFILE *popen (const char *command, const char *type);int Pclose (FILE *stream);DescribeThe Popen () function opens a process by creating a pipe, forking, and invoking the shell. Since a pipe is by
Every time I write a script under Linux has the ability to send mail, but the configuration under Linux always forget, so this time wrote a small script, record, next time you want to configure the script to run the line. QQ mailbox is used
Echo-echo command can display a line or variable of text, or enter a string into the file string- E To resolve the escape character "nimenhao\ Nasfdsaf" printing occurs line -N-Carriage does not wrap in detail: Generally in the
Directory
Re-recognize variables
Function
Conditional statements
Looping statements
1. Re-identification of variablesThere are 3 types of variables in the Shell: User variables, positional
KVM One-click Shell automatically generates a Windows virtual machine, unattended operation scheme is divided into four steps to complete the joint;The first step: Start the startup script, so that the machine can be executed at the start of 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