Shell Special character Cut command
Any of any characters? Any one character#注释字符\ de-Semantic characters·| pipe characterCut intercept string-D Specify delimiter-f Specifies the Intercept paragraphBy looking at what we can see,/etc/passwd is
Bash Knowledge Points: File testing[ ][[ ]]TestMonocular test:-e file: Test files exist-A file: Test files exist-F file: Test for normal files-D directory: test for directory files-H file: Test is a linked file-R somefile: Test whether its valid
1, shell command commonly known as "shell", it provides a user interface with the kernel to interact with, he accepts the user input command and sends it to the kernel to execute 'The shell is actually a command interpreter that interprets the
[TOC]Shell programming One, Shell script introduction
The shell is a program written in C that is a bridge for users to use Linux. The shell is both a command language and a programming language.The shell is a scripting language;Can use
Only the environment variables are placed in the configuration file to automatically take effect each time the power-on. SOURCE command: Let the configuration file take effect directly without logging off or logging back in.Source configuration file
Case one:"LVS Client Node" Development LVS Client Set VIP and Admin script to suppress ARPScript content:#!/bin/bash############################################################### file name: lvs_ client.sh# version: v1.0# author: da ya# organization:
Break and continue can all be used in the loop, but the two functions are a bit different, for example, break is jumping out of the loop, while continue is jumping out of the loop and going on to the next loop, we'll show the difference between the
The VI editor has three status modes "VI file name (or path + file name)"1. Command mode2. Input mode3. Last-line modeConversion between three modesVi. start and exit of the VI editorGo directly to the editing environment$ VIEnter the editing
This article mainly describes the "Aix escalation:" Shell will time out in the seconds "solution", mainly related to Aix escalation: "Shell will time out in the seconds" solution, for the AIX escalation : "Shell will time out in seconds" solution
Introductory ArticleLinux, we generally use the command line to operate, a good-looking command line, can make our work comfortable, this tutorial can be made to complete the command line style:Of course, you can change the more cool command-line
This is the case with the switch as an example of the script written, other manufacturers of equipment according to the device command to modify the script.DemandBulk Backup network device profile to FTP server, and automatically compress the
Shell Script third-- Monitor the host's disk space and send mail to warn when more than 90% space is used#!/bin/bash#monitor available disk space#提取本服务器的IP地址信息ip= ' ifconfig eth0 | grep "inet addr" | cut-f 2-d ":" | Cut-f 1-d "" 'space= ' df-hp |
Shell Script Debug Print log issue 1. DemandWhen we write scripts, sometimes we need to do debugging, so that we can locate the problem, and sometimes when the script goes online, we need to keep the records during the execution of the script. It
I. Shell INTRODUCTIONThe shell is a command-line interpreter for Unix/linux, and a series of commands executed by the user in the shell are executed directly by the shell command-line interpreter. Modern, popular command-line interpretation features
Pipe characterIt is used for the output of the previous instruction as input to the latter instruction.650) this.width=650; "Src=" Https://s5.51cto.com/oss/201711/16/1a4adbd82674ccd735f9b4748eaac9ac.png-wh_500x0-wm_3 -wmp_4-s_2715965200.png "title="
I. Basic introduction to Shell programming 1.1shell programmingThe shell is an interface that the user interacts with the kernel, and the most popular shell is now called the Bash shellThe shell is also a programming language interpreted
1: What is Shell???
(1) The shell is an interface that the user interacts with the kernel, and the most popular shell is now called the Bash shell(2) The shell is also a programming language (3) A system can have more than one shell, you
The Linux Shell "(())" Double parenthesis operator uses theAt the beginning of learning Inux shell scripting, for its arithmetic and logical operations. It is estimated that many friends feel more difficult to accept. When using the special variable
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