1.test statement
The test instruction is used when I want to detect that some of the file rings on the system are related attributes.
(1) The file type judgment about a filename, such as TEST-E filename indicates existence
-e Does the file name
What is the Classic shell?
The Classic shell is a Windows Start Menu tool that offers three start menu styles such as XP classic style, Vista double bar classic style, Win7 two-column evolutionary style, and replaces your favorite "Start" button
Gitbook Installation:
Download Node.js source code (click on the Green install),
Extract
./configure Make
After successful execution, NPM is installed.
2. Gitbook installation command
NPM install-g GITBOOK-CLI
Loops are often used in shell programming, and the commonly used loops are for and while loops. While loops read files by default in rows, and for loops read file-splitting files with spaces, this article combines some examples of current web usage
What I want to say here is the parentheses in several shells, the braces and the bracketed variables, and the use of the command, as follows:
1.${var}2.$ (CMD)3. () and {}4.${var:-string},${var:+string},${var:=string},${var:?string}5.$ ((exp))6.$
In the *unix system, the commonly used shell has sh,bash,csh/tcsh, ksh.
SH comes from SystemV Unix, is the traditional Unix shell, until now many system administrators still like to use SH.Bash comes from BSD Unix, the syntax is very similar to C,
1. Install Mutt mail Client
# yum Install Mutt-y
2. Create a script
# vi/etc/rc.d/mail_to_bak_daily.sh
Version One:
#!/bin/bash # ========================================================= # Please enter which
One, the difference between NR and FNR
NR: Represents the current number of recordsFNR: Also represents the current number of records, but the scope of FNR is within only one file. If you reopen the file, FNR starts at 1.
Second, the example
"Note 1": unlike Java, PHP and other languages, SH's process control can not be empty, such as:
The code is as follows:
You can't write this in Sh/bash, if the Else branch has no statement execution, don't write this else, like this:
If
"13.1" What is shell script.
1 shell script is a "program" written using the function of the shell, which uses a text file to write some shell syntax and commands (including external commands) inside, with regular representations, pipeline
Today, there is a problem with automating Jenkins deployments. I will kill other processes while executing the shell script, and this process is no longer executing, looking for resources and finding an article.
This is because Jenkins by default
It can be created under Sybase users and named Bcpoutdata.
Then chmod a+x bcpoutdata
Run Bcpoutdata under the Sybase user.
Note:
1) Change the database_name to your database name.
2 Change the PAS to your sa password.
3 Change the server to
Usage: date [options] ... [+ format]Or: Date [-u|--utc|--universal] [MMDDHHMM[[CC]YY][.SS]]
Displays the current time in the given format, or sets the system date.
-D,--date= string to display the time described by the specified string,
#改改变量就可以了使用, the output information is automatically generated Mysql_backup.log logs to see when the script was backed up,CentOS 7 MySQL Automatic backup shell scriptSystem environment:CentOS7 64-bitMySQL-5.6Principles and tools:Shell
Print 99 The multiplication table is a must-write program in any language, especially after learning the loop.Print 99 multiplication Table First step
It is well known that the format of the 99 multiplication table is x * y = ZSo we need at
The content of this section:
Create Kafka Topic
View all Topic lists
View specified topic information
Console to topic Production data
Data from the console consumption topic
View topic the maximum (small) value of a
8.1 Shell Introduction: Interaction between the converters1. Shell is a command interpreter that provides interaction between the user and the machine2, support specific grammar, such as logical judgment, loop3, each user can have their own
This article directory:1.6.1 Basic Integer Arithmetic1.6.2 BC Command Advanced arithmetic operationsuse Let, $ (()), or $[] for basic integer operations, using BC for advanced operations, including decimal operations. Where the expr command can also
(i) SEDSed is a streamlined, non-interactive, streaming editor that enters edit commands and specifies file names on the command line. Then look at the output on the screen.The progressive reading of the file contents is stored in a temporary buffer
HBase shell command.
Enter HBase Shell Console$HBASE _home/bin/hbase ShellIf you have Kerberos authentication, you need to use the appropriate keytab for authentication (using the Kinit command), and then use the HBase shell to enter 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