I. Introduction of IFSThe Shell script has a variable called IFS (Internal field Seprator), the internal domain delimiter. The full definition is the shell uses the value stored in IFS, which are the space, tab, and newline characters by default, to
$ CD ' DirName $ ' and pwd%} display the current directory name${#var} to be replaced by the number of variable charactersSpecial variables$ current Shell's PID? Exit status of the previous command! PID of the previous work performed in the
How awk WorksThe first step: Execute Begin{action ...} Statements in a statement blockStep two: Read a line from the file or standard input (stdin), then execute the pattern{action ...} Statement block, which scans the file row by line, repeating
Directory index of this blog post[TOC]First, the Cognition function (a) What is a function?1, the function, the English called: function2. A function is a block of statements made up of several shell commands(b) Why should I use a function?1.
What is a shell?Shell is a use C Programming language, which is used by the user Linux the bridge. the Shell is both a command language and a programming language. Shell refers to an application that provides an interface through which users access
8.1 Shell Introduction8.2 Command History8.3 Command Completion and aliases8.4 Wildcard Characters8.5 input and output redirection
8.1 Shell Introduction
The shell is a command interpreter that provides interaction between the user
Description: The shell parameter, as the name implies, is passed to the shell script, we can use some parameters in the sh scripts.sh parameter parameter +1 parameter +2 of the way to execute.The format for getting parameters within a script is: $n
Shell Special Symbols* Any of any characters[[email protected] ~]# ls *.txt1.txt 23.txt 2.txt David.txt? Any one character[email protected] ~]# ls?. Txt1.txt 2.txt# comment Characters[[email protected] ~]# #echo ' OK '\ de-Semantic characters[Email
Have you ever experienced a situation where you log in to a remote Linux host from the terminal software, Compress a large pile of files into a. tar.gz file, compressed for half an hour is not finished, at this time, suddenly you broke the network,
There are three types of quotes in the Linux shell, double quotation marks (""), single quotation marks (' '), and anti-quotation marks (').The double quotation marks replace the $, ', ', and \ that appear in the string, the single quotation marks
Topic (i)There are 1 2 3 44 digits, any combination of how many different and no duplicates of the number, what is the difference?The shell code is as follows:#!/bin/bashFor i in ' seq 4 'DoFor x in ' SEQ 4 'DoFor y in ' seq 4 'Do[$x-eq $i] &&
Because the company Ali server changes several times, manually deployed several times Fastdfs+nginx, so think of the automated deployment, the following is the script content, because just want to implement the function, has not completed the
This article directory:1.1 Introduction1.2 TR Mapping1.3 Completely corresponding replacement1.4 Compression Symbols1.5 deleting symbols and complement sets1.1 IntroductionTR is primarily used for result set mapping, character compression, and
Script to detect OSObjective: After learning the shell language, according to the script that has been learned to write a shell to detect some of the system parameters to achieve email alerts,(I have just learned to write less perfect and practical!)
Reprinted from: http://www.jb51.net/article/60326.htmWhat I want to say here is a few shell parentheses, braces and parentheses, the use of commands, as follows:1.${var}2.$ (CMD)3. () and
Jump out of loops and function return values
one, exit cycleIn shell programming, there are usually two ways to exit a loop:Contine: Is the end of the execution of the loop, the default is Contine 1, when contine 3 o'clock, then the 3rd layer
Tagged with: Expect test shell strong analog Linu display binary comSometimes the script is executed with an error:SH -x test. SH + $'\ r': Command not foundtest. SH Panax Notoginseng fileThe reasons may be:Text editing is a file written in Notepad
Shell ArrayBash supports one-dimensional arrays (which do not support multidimensional arrays) and does not limit the size of arrays.Similar to the C language, the subscript of an array element is numbered starting with 0. Gets the elements in the
Configuration files for pipeline operators, Job control, shell variables, global variables, environment variables, and shell global variables
Pipeline operator
Pipe character "|": Use the output of the previous command as the input of the next
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