Shell Special Symbol/cut,sort,wc,uniq,tee,tr,split command

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 command 8.11 sort_wc_uniq command 8.12 tee_t

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

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 Introduction 8.2 command History 8.3 command completion and alias 8.4 wildcard 8.5 input/output weight

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,

Automatic matching and binding auto scaling policy "shell" based on memory size

#!/bin/Bash forXinch$ (cf a|grepstarted|TR-S" "|Cut-D" "-F1) Doins_quantity=$ (cf a|grep$x |TR-S" "|Cut-D" "-F3|Cut-D"/"-F2); App_memory=$ (cf a|grep$x |TR-S" "|Cut-D" "-F4); Echo "AppName:"$xEcho "Instance num:"${ins_quantity};

2017 the latest enterprise Shell face test and enterprise operation and maintenance of a total of 30 cases

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 and job control, shell variables, environment variable profiles

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="

Shell scripts replace file names and contents of files in bulk

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

Linux shell script statements, functions, detection services, startup script exercises

I. If statement650) this.width=650; "src=" Https://s4.51cto.com/oss/201711/11/8a70ba0e53f279453f8d8b3561cedf7f.png "style=" float: none; "Title=" screenshot from 2017-11-11 20-01-52.png "alt=" 8a70ba0e53f279453f8d8b3561cedf7f.png "/>650) this.width=6

Linux shell numeric comparisons and string comparisons and correlation

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

The difference between $ (()) in the shell and $ () and ${}

$ () 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

Numerical operations in the shell

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

Shell operations for HDFS in Hadoop framework

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

Conditional expressions in the shell

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

Shell Command Collection

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

Install Zabbix and configure the client's Autodiscover options using the shell script one-click

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

Running the shell command from the terminal in the background under Linux

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

Odoo 10 deployment Shell to be improved

Environment Ubuntu16+nginx+python2.7.12+postgresql9.5+odoo 10.0 Community#!/bin/bash#author:[email protected] #date: 2017-09-06#description: Deploying Odoo 10.0 Shell Ubuntu >=14odoo_options

Linux Shell Programming Four Musketeers-awk

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

Shell script usage of some basic statements

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="

Total Pages: 541 1 .... 103 104 105 106 107 .... 541 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.