Network traffic monitoring tools have a lot of, such as: MRTG, Cacti, Zabbix and so on, they have their own characteristics, different focus, only for different application scenarios for a variety of special needs. In addition to network traffic
Eval
Eval performs a two-pass scan of the following commands, executes this command if the command is a normal command after the first scan, and guarantees the semantics of the indirect reference if the command contains an indirect reference to the
1. Basic Concepts
A, I/O redirection is usually related to FD, Shell FD is usually 10, namely 0~9;
b, commonly used FD has 3, for 0 (stdin, standard input), 1 (stdout, standard output), 2 (stderr, standard error Output), the default and keyboard,
Save the following code as one. BAT file, (WIN2000 for example, if 2003 is used, the system folder should be C:\WINDOWS\)
Copy Code code as follows:
Regsvr32/u C:\WINNT\System32\wshom.ocx
Del C:\WINNT\System32\wshom.ocx
Regsvr32/u
The echo display in the shell script is displayed in color with the echo displayed in color with the parameter-EThe format is as follows:
Copy Code code as follows:
Echo-e "\033[character background color; text color m string \033[0m"
We can always see in Android development that the log log content of the program is full of screens, and the information that really makes sense to the developer is submerged in the torrent, leaving developers at a loss and seriously impacting
This is a simple shell instance.
Here is a description of its requirements:
Experiment five UNIX Shell program design
Experiment content: Use UNIX shell programming language, write Unix shell application.
Experiment requirements: The following
The use of conditional expressions in shell programming
If conditionThenCommandElseCommandFi, don't forget this ending.
If statement forgets the end fiTest.sh:line 14:syntax error:unexpected End of fi
Three
Shell--for in Cycle 2013-03-28 18:06:29 tags: for loop
Shell programming--for in loop-------for in format-------
For no $ variable in string do $ variable done a simple string enumeration of calendars, using for-in format the character of a
Parameter description
1:$# indicates the number of incoming arguments executed by the script
2:$* indicates that the execute script passes in the argument list
3:$$ represents the Process ID
4:$@ indicates that the execute script passed in all
[awk Introduction:]
Awk can get part of the content from a single text, or typesetting the text so that it prints in some format.
[awk Workflow:]
Awk goes into memory with one line of the file, and then segments the line (by default, by Space or
http://blog.51cto.com/zt/267
Original works, allow reprint, please be sure to use hyperlinks in the form of the original source of the article, author information and this statement. Otherwise, the legal liability will be investigated.
1. Shell Introduction 1.1 Shell appearance backgroundThe Shell is both a scripting language and a software for connecting cores and users.For the graphical interface, the user can start a program by tapping an icon, and for the command line, the
From the programmer's point of view, the shell itself is a program written in C language, from the user's point of view, the shell is the user and the Linux operating system communication Bridge. The user can either enter command execution or use
There are several ways to bash a shell script, and now make a summary. Suppose we write a good shell script with the file name hello.sh, the file location in the/data/shell directory and have execute permissions.Method One: Switch to the directory
Interactive shell and non-interactive shell (interactive shell and non-interactive shell)
The interactive mode is executed on the terminal, the shell waits for your input, and executes the command you submitted immediately. This pattern is
background: In the remote file download, you need to enter the other party's server password, the shell does not support interactive input content, can be implemented in the following two ways I. Embedding expect in shell scripts for password
Speaking of secure network access, we believe that the first thing we think of is secure shell, which is usually abbreviated as SSH. This is because SSH is easy to install, easy to use, and common. Generally, UNIX, Linux, and FreeBSD systems all
The first and last days of this month:
Echo 'date -- Date "$1" + "% Y-% m-01 "'
Year = 'date-d "$1" + "% Y "'Month = 'date-d "$1" + "% m "'Last_day = 'cal $ month $ year | xargs | awk '{print $ NF }''
Echo $ year-$ month-$ last_day
Calculate 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