(Friendly hint: This article belongs to the elementary shell programming, the Master can ignore this article)During the operation of the product environment, daily log files are cut to produce the day-to-date logs, which are generally not useful
Operation and maintenance experience sharing as a topic, currently a total of 7 articles
Operation and maintenance experience sharing (i)--Linux Shell's Chatterserver service control script
Operation and maintenance experience Sharing
Today, big data boss gave me a task-grabbing stock history data. As a wget, I looked for it on the Internet and found that it was really a very powerful Linux download tool. I have been deeply shocked. The following is a description of some of today'
#分析文件lanmp. SH, which introduced a series of function files in its head. lib/common.conf. lib/common.sh. lib/mysql.sh. lib/apache.sh . lib/nginx.sh. lib/php.sh. lib/na.sh. lib/libiconv.sh. lib/eaccelerator.sh. lib
1.Cut: Command Select cut-d ' delimited character '-F fields-D: followed by delimited characters, used with-f-F: Cutting a piece of information into several segments according to the delimited character of-D-C: Remove a fixed character range in
Linux script (shell) programmingAh, yesterday on the Internet to see an article about Linux/unix shell, think of their last write this thing is also a year ago, think about it is almost forgotten.or tidy up, do a review, it may be used in the future,
String in Shell: string is the most commonly used and most useful data type in shell programming (in addition to numbers and strings, no other type is easy to use, haha), strings can be in single quotes, or double quotes, or without quotes. The
1, the implementation of the Sourse directory part of the file (the file name is listed as a text list, text file name list), copied to another directory/opt/targe/#!/bin/bashcd/opt/source for file in ' cat/opt/source/list ';d ocp-r-n
Login Shell and Non-login Shell:Login Shell: When you get the shell, you need a full login process. such as: Tty1~tty6 login, you need to enter a user name and password. The shell you get at this point is called loginShellNon-login Shell: When you
Presumably the requirement is that the AIX system Usysfault command takes the fault light information, but this command appears to be performed only by the root user, and the other user executes the error. All sorts of ways to empower all fail, so
Suppose we define a variable as:File=/dir1/dir2/dir3/my.file.txtWe can use${ }Replace each to get different values:${file#*/}: Take out the first one./And the string to its left:Dir1/dir2/dir3/my.file.txt${file##*/}: Take the last one off./And the
First, the installation of Mutt1 yum-y Install postfix2 #需要安装sendmail并开启防火墙的25端口, if you need to receive mail 110 port also open 3 yum-y install Mutt Second, configuration informationAbout the configuration information, there is a point to explain,
In the forum above Post asked what things, once not top, the post on the second sank, but really do not want to go to the top every moment, how to do? The following shows how to use the shell's crontab to implement automatic top-pasting.Gossip not
&& operators:Command1 && Command2&& the command on the Left (command 1) returns True (that is, returns 0, executed successfully) and the command (Command 2) on the right side of the,&& can be executed, in other words, "If this command succeeds &&
What are the special characters in the bash shell? Some special characters in the bash shell do not represent the meaning of their characters themselves, but have another meaning, called: meta-meaning.
1. Characters: #
Represents a
From:http://www.jb51.net/article/34322.htmThe bash shell supports only one-dimensional arrays, but there is no limit to the number of arguments.Declares an array:Declare-a Array(In fact, you don't have to declare it, you assign it directly to the
Http://www.cnblogs.com/chengmo/archive/2010/09/30/1839632.html#!/bin/The bash# script detects an offline host opportunity to send an email notification that can be run all the time. # Please set mail gatewany IP lastip Four items according to your
Article background:Wrote an article on how to build a personal website on your personal computer.Create a Web site that is entirely up to you (i)But a personal website is built on the PC, and the external computer is not directly accessible to our
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