There are a lot of ways, and here are three ways to write:
Writing a:
Copy Code code as follows:
#!/bin/bash
While Read line
Todo
Echo $line
Done
Writing two:
Copy Code code as follows:
#!/bin/bash
Cat
Recently more busy, for a long time did not update the blog, today is not busy writing a traffic monitoring script. The test has passed under the CentOS, has the need friend to try, has the bug or needs to add other function words can leave a
Recently, just need to test the stability of the new station, so write a shell script to the local (recently changed MAC), to real-time view you need to monitor the status of the Web page, and sent to the designated mailbox.
Here's a compliment. OS
Once run, the warehouse on the Gitolite server can be backed up to the local. The first run creates a local mirror of the remote warehouse, which updates the local mirror each time it runs.
This program only supports SSH mode
Other GIT servers do
1, edit the user's home directory of the. muttrc file, set the letter environment.
Copy Code code as follows:
# CAT/ROOT/.MUTTRC
Set Envelope_from=yes
Set from=owinux@sina.cn
Set Realname= "Owinux"
Set Use_from=yes
Set Rfc204
Each open file is assigned a file descriptor. stdin (keyboard), stdout (screen), and stderr (Error message output to screen) are the file descriptors 0, 1, and 2 respectively. The descriptor 3 to 9 is retained for the extra files that are being
The Shell Case statement is a multiple-selection statement. You can use a case statement to match a value with a pattern, and if the match succeeds, execute the matching command. The case statement is formatted as follows:
Copy Code code as
I. Single-select annotations
Lines that begin with "#" are comments that are ignored by the interpreter.
Copy Code code as follows:
#--------------------------------------------
# This is a script that automatically plays IPA,
This paper briefly introduces the method of installing Gearmand and starting under rhel5.7, for everyone to study for reference!
First of all, to the official website https://launchpad.net/gearmand/Download Gearmand source package, uploaded to the
Objective
In the business development process, often in the background to write some shell script processing data, but it is estimated that many people do not know that the shell script can also support multithreading, and very simple. This article
Sometimes in the Linux operating system to calculate the length of a string, through the query data to the current shell to get the length of the string of various methods to share here, the method is as follows:
Method 1: Use the wc-l commandWc-l
You must have seen the effect of flying words on a Web page, but how do you implement the Echo string in a Linux system, especially in Bash command line mode, with flying effects? This effect is not practical, but occasionally to amuse themselves
When writing a shell script, we need to use a variety of special symbols, through these special symbols can make us write code more concise and efficient, here to the summary:
1, {} curly braces:Usage One: Wildcard extensionEg:ls
Nowadays many people like to use spaces when they are named, such as "an Introduction.doc". But this naming problem is confusing to Linux command-line tools and shells, because most commands use whitespace as a separator between values and values,
Under Linux You can use the history command to view all the history of a user, while the shell command action record is saved by default in the. bash_history file in the user's directory. Through this file can query the execution history of the
You can now execute a command by using the Commandhelper.execute method, which implements the
Copy Code code as follows:
Package Javaapplication3;
Import Java.io.BufferedReader;
Import java.io.IOException;
Import
How to execute Java commands in Android Everyone knows that, the following section of the content for you to bring a specific analysis.
The Android program is based on Java development, and when we connect to the debugger, execute the ADB shell, we
1. Code is simple, but difficult to verify, not as good as Python understandingIt is recommended to edit under notepad++.2. Note the ' Yes ' tab key that references the Linux command.3.if[] HereError:syntax error near unexpected tokens ' then 'Cause:
the function of the echo command is to display a piece of text on the display, which generally acts as a hint. the general format of the command is: Echo [-n] string where option n means that the output text is not wrapped, the string can be quoted,
What is a shell, what can you do?1. ProceduresNarrow: Operating system programs and applications.The operating system program is used to invoke the monitoring kernel, which runs all the programs we can apply on this operating system.The operation 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.