Shell Special Symbol Cut commandShell Special Symbols* *任意个任意字符* ?任意一个字符* #注释字符* \脱义字符* |管道符Command cutcut is used to intercept a field in the form of: #cut –d ' separator character ' [-cf]n,n is a number.Options:- D is followed by a delimiter, and
8.10 Shell Special Symbol Cut commandCommand: CutUsed to intercept a fieldSyntax: cut-d ' delimited character ' [-CF] n Here's n is the number-D: followed by delimited characters, separated by single quotation marks-C: followed by the first few
Shell Script First-Custom create user and batch create user 1. build Linux users with shell scripts# vim/root/user.sh#!/bin/bash#通过脚本自定义创建用户read-p " Please enter the user name you want to create : " $Useradd $read-p " Please set the user password:
8.1 Shell IntroductionThe shell is the intermediate medium used when the system interacts with the computer hardware, and it is just a tool of the system.The user directly faces not the computer hardware but the shell, the user instructs the shell,
1, enterprise Shell face question 1: Batch generate random character file name caseUse the For loop to bulk create 10 HTML files in the/oldboy directory, where each file needs to contain 10 random lowercase characters plus a fixed string oldboy,
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="
Method 1:These two days in the camera Bringup, need to add chromatic file, because there is too much to replace the contents of the file, manually change the file configuration a bit less practical, so Google a bit, to find a good way to replace the
The string is compared to the integer type, because the ABCD and other characters are not 0123 when the program tries to turn to binary, the conversion cannot be completed, so the operation used for the numeric comparison cannot be used for the
$ () and ' (anti-quote)In the bash shell, $ () and "(anti-quote) are used for command substitution.$ echo the last Sunday was $ (date-d "last Sunday" +%y-%m-%d)Get the date of the previous SundayThe reason for using $ ()1. "Easy to mix with" (single
by Francis_hao Oct 2,2017This article extracts the Man manual from bash.The related forms of arithmetic operations
Form
Meaning
((expression))
expression is performed according to the arithmetic
Since HDFs is a distributed file system for accessing data, the operation of HDFs is the basic operation of the file system, such as file creation, modification, deletion, modification permissions, folder creation, deletion, renaming, etc. The
by Francis_hao Oct 1,2017This article extracts the Man Handbook from bashConditional expressionsThe conditional expression is composed of a composite command [[or] built-in command test and [used for testing file properties and string or numeric
CCat Zdd Browse the contents of a ZDD fileCat Zdd1 Zdd2 Browsing the contents of multiple filesCat-n ZDD Browse the contents of a file Zdd and display line numbersCD back to the start directory, that is, just logged into the system directory, CD
1. Reasons:My own ESXi server recently added a lot of virtual hosts, but I'm not installing, using, the kind of batch OPS (Saltstack,ansible,puppet, etc.). Although there is another way: to open several windows at a time through the shell tool, and
Under Linux, if the shell command you want to execute takes a very long time, and: (1) Your network is unstable, you may be disconnected at any time, or (2) you must close the terminal software (for example, SECURECRT) after executing the shell
Awk" Syntax "awk "option" pattern action filenameprogram:pattern+actionIf there are multiple statements in the action, you need to use;Eg:awk ' begin{test= "Hello gawk";p rint test} '1. PrintPrint item1,item2, ...1) Comma delimiter2) Each item of
A. For statement1. Use the For statement to add users in bulk650) this.width=650; "src=" http://s3.sinaimg.cn/bmiddle/006OWCmEzy7cGLCj6ued2&690 "Name=" Image_operate_ 75451500196244212 "alt=" shell script some basic statements of the use of "title="
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