Small black and began to toss new things, last week just learned OpenSSL construction private CA, Saturday took a bit of time to write this script, time Rush, finish to go to the DNS, if there are any bug please forgive me, this script is purely
After learning the shell script to get started, slowly try to write some scripts to practice practiced hand, in this first simple learning to write a system memory monitoring.1, first of all to determine the need to take a look at the memory usage
Diff diir_1.0/dir_2.0/-urnb > dir_2.0.patchU:union output file differential information in a merged formatR: Recursive comparison of all files in subdirectoriesU: Treats non-existent files as empty filesB: Ignore the differences caused by empty rows~
1 Shell Variable BasicsThe shell variable is a very "weak" variable, by default a variable holds a string, and the shell does not care what the string means. So for mathematical operations, you must use some commands such as let, declare, expr,
1. CutUsed to segment a fileCut-d ' delimiter ' [-CF] n-d Specifies the delimiter followed by single quotation marks.-F Specify paragraph-C is followed by a number that indicates the intercept of the first few characters, followed by a number area,
First, the script functionTo determine whether the IP is occupied, the ping rule is considered to be occupied and the results are output to ip_yes.txt and Ip_no.txt, respectively, by means of the ping command detection.Second, script
we can use any kind of text editor, such as Gedit, Kedit, Emacs, VI, etc. to write shell scripts, which must start with the following line (must be placed in the first line of the file): #!/bin/sh... Note: It is best to use "!/bin/bash" instead of "!
#!/bin/bash################################ System Condition Analysis Script ## ##用途: For system CPU usage, memory, ##网络连接, disk space, System process ##交易数量以及交易日志进行分析 ##适用操作系统: Linux ##版本: 1.0 ##
Although the application of automation such as puppet saltstack in the environment is now realized, it is unavoidable to write some simple scripts to execute shell commands in batch.Python Paramiko module is currently used more comfortable module,
Once the trap captures the signal, there are three ways to react:(1) Execute a procedure to process this signal(2) The default action to accept the signal(3) Ignoring this signalTwo. The trap provides three basic forms for the above three ways:The
Transfer from http://www.cnblogs.com/peida/archive/2013/03/18/2965369.htmlThe wget in a Linux system is a tool for downloading files, which is used at the command line. For Linux users is an essential tool, we often have to download some software or
Previously wrote a view of the Linux server current traffic small script, very simple, but can intuitively give us some information#!/bin/sh## #统计10s内的平均流量, if [ "$" = " ];then echo -e" in megabytes
First, view the file encoding. When you open the file, enter: Set fileencodingYou can display the file encoding format. Second, the file encoding conversion1, in vim Direct conversion file encoding, such as converting a file to Utf-8 formatin the
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/71/B3/wKiom1XW4BagvgPxAAC_N_Bdskw467.jpg "title=" Qq20150821162310.png "alt=" Wkiom1xw4bagvgpxaac_n_bdskw467.jpg "/>1, according to the frequency of word occurrence descending sort! 2, in
Today in one of their own technical group was asked such a question, and then a popular explanation, make a record, we look at the explanation is clear!The shell can often be seen: >/dev/null 2>&1The result of the command can be defined in the form
A problem was encountered today when writing a timed CP script, value too great for base (Error token is "08")The number system that originally started with 0 is recognized by default as an octal number, so my $datem-1 gets the month of the month in
Text processing commands for Shell scripting Learning notesA. Cut (truncate text characters or field fields)Command format: Cut [option] FileCombined use of 1.-d and-F to intercept fieldsDescription: * denotes delimiter, such as-,:, empty characters,
Fly2015Windows platform Shell Software is still more, so there are many people for the pc software Shelling Music This, I rookie a, also learn about the shelling of the PC. To shelled the software, the first step is to check the shell, and then 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.