The test command expects to find a parameter on the command line that is considered empty when the shell does not assign a value to the variable. This means that when the script is being processed, test will report the error once the script is
First, what is the SCP?
SCP is a secure copy of the shorthand for remote copy of files under Linux commands, and its similar command has CP, but the CP is only on the local copy not across the server, and the SCP transmission is encrypted, may
From this beginning, it is the text content operation, which differs from the text operation.
The grep command in a Linux system is a powerful text search tool that uses regular expressions to search for text and print matching rows. The grep full
This is a shell script, so first you need to install a basic Cygwin environment and, of course, curl.
The principle is very simple, first download the latest MIRRORS.LST mirror list from cygwin.com, after simple processing, using curl to detect the
There are many ways to read one file at a row in Linux, the most common of which is the method in the following script, and the most efficient and most used method. In order to give you an intuitive feeling, we will test the execution efficiency of
1. Preface
In the actual development process, each module will involve some common functions, such as reading and writing files, search, sorting. In order to reduce the redundancy of the Code and improve the quality of the code, these common parts
I. Introduction to the function1. Put the deleted files in the Recycle Bin2. Recovery of deleted files3. Implementation of the Linux RM command function, using almost the Linux system with the RM, command exactly the same4. New features: Rm-l, RM-E,
It is customary to use the Linux command line to manage Linux systems, for example:
Copy Code code as follows:
$ date
211 01:34:58 CST 1999
$
When the user logs in, it actually goes into the shell, and it follows a certain
Many people use shell scripts to accomplish simple tasks and become part of their lives. Unfortunately, shell scripts can have a very large impact when they run an exception. It is necessary to minimize this type of problem when writing scripts. In
Recently has been studying the shell script this piece, just idle down the whole under their own on the better information in some examples, the following is my brother of the birds in the regular expression inside the inside of the comparison of
Because often use the shell script, so often will write some, but I have never systematically learned the shell script, encountered problems, go to the manual, or Google, to a certain extent to find their foundation is really bad. The following is a
Especially in today's various browsers are flying (it is said that only IE is the kernel of the browser there are 200 kinds of).
Little brother today wrote a jquery based plug-in extension that identifies the type and version of the browser's kernel
1. Single File read
Under the shell script, you can read files by rows in a variety of ways, as follows:
For line in ' Cat ${input_filename} '
Todo
Echo $line
Done
While Read line
Todo
Echo $line
Done
The second way is to redirect files
3. Bash 's basic features3.1 Historical Command and command completion (1) History command :#history [Options] [history command Save file]① option:-C: Clears the history command;-W: Writes the history command in the cache to the file ~/.bash_history(
Use shell scripts to implement a one-click installation of the LANMP system. The operating system used is CentOS 6, which does not differentiate between 32-bit and 64-bit, requiring the machine to connect to the Internet. Supports both LAMP and LNMP,
Shell basic applications and examplesOne$# the number of arguments to the script$* displays all parameters passed to the script in a single string. Unlike positional variables, this option parameter can be more than 9$$ the current process ID number
Install the Ansible batch management system. (No, SSH remote command loop is also possible)
Create a new table in a common database, using the information you want to collect as a column name, and provide the ability to insert with the shell.
In general, the programming language can be divided into two categories: the compiled language and the interpreted language.Compiled languagesMany of the traditional programming languages, such as Fortran, Ada, Pascal, C, C + +, and Java, are
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