Shell Special Symbols

*-----Wildcard (multi-bit)?-----wildcard character (one bit)#-----Comment (Explanatory Note)\-----caret (\ #1. txt, let #1.txt become a file name, so that the special symbol behind the loss of meaning)|-----Give the result of one command to another

Shell Common Commands

Tag: TR WC split cutCut interceptCut-d:-f+ number + file to take the first paragraph of the file, with a comma between multiple numbersCut-c intercept the first few characters (3-5 3 to 5)Sort sorts-T delimiter-U to repeat-N Sort by number-K

The test command usage of the Linux shell is detailed

Basic format:Test expressionExpression constructed for the test command.Here expression is any valid expression that the test command can understand, and the simplified format will be the most common format that the reader may aiiowed seereturn

Shell script: Row and column conversions

Writing SQL in MyBatis, such as SELECT, involves a long list of names.'int (null auto_increment, ' name ' varchar (COLLATE) utf8mb4_bin, ' mainimg ' varchar (null,... Now you want to convert the column names in the table description to a

Linux Gvim shell input and output redirection

#输入输出重定向: Unix gets input from stdin by default, stdout output, input device is keyboard, output device is terminal#输出重定向: The clear output can be not only the monitor, but also the transfer to the file, which is called the output

Shell Script Delete Partition

#!/bin/bashSource/etc/profileSOURCE ~/.bash_profile##################################00 * * */bin/bash/utxt/soft/tools/rm_oracle.sh >>/utxt/soft/tools/rm_oracle.log 2>&1#################################lyd_rm_dt= ' date-d '-5 day "+%y%m%d"flow_rm_dt=

Shell built-in operator-string processing (summary)

First, Judge read the string value An expression meaning ${var} Variable var with the same value as $var ${var-default} If Var is not declared, then use $default

Single and double quotation marks in the shell

Use directly after declaring variables in the shell:#! /bin/bashNa=zhagnsanag=11Echo ' $na is $ag years old 'Output: $na is $ag years oldecho "$na is $ag years-old"Output: Zhagnsan is one years oldTherefore, use "" in shell scripts to output

The Linux/shell of the interview question summary

LinuxLinux CSHRC file functionsHow Linux processes/view process/kill processWhat permissions does Linux file 755 represent?Linux worker threadsLinux inter-Process communication methodPipeline,msgq ...Inter-process Communication _ Baidu

Shell (13) parameter substitution

Shell parameter substitution xargs. Parameters that generate the command1. Cut-d ': '-f 1/etc/passwd | Head-n 3 | Xargs finger  2. Ask the user before executingCut-d ': '-f 1/etc/passwd | Head-n 3 | Xargs-p FingerIf you press ENTER directly, exit  3.

Shell Basics Learning (v) Test command

1. Numerical test Parameters Description -eq Equals is True -gt is greater than true -lt is less than true -nq Not equal to True -ge

Ant invoke Shell command (Ubuntu)

Call makefile in Ant and use the make command in the shellXML version= "1.0" encoding= "Utf-8"?> Projectname= "Dy_cike_init"Basedir="."> Targetname= "HAIT_CPR"Description=""> execexecutable= "/bin/sh"> Arg Line= "-C

Linux Learning Note (iii)-shell command mechanism

Toggle command line: CTRL+ALT+F1-F6 Switch to graphical interface: CTRL+ALT+F7 Ls-list (dir under Win)White: Normal fileBlue: Catalog FileGreen: Executable fileTo perform the steps: Input ls In the relevant directory go to the

LINUX Shell condition judgment

conditional judgment of arithmetic operation [] [[]]:-eq-ne-Lt-le-gt-GE(( )):>>==[[Email protected] ~]# if ((2 = = 3)); then echo ' 123 '; Fi[[Email protected] ~]# if ((2 >= 3); then echo ' 123 '; Fi[[Email protected] ~]# if ((2 123[[Email protected]

Shell statistics GMT0 time Zone data

and a supplier to check the data, the other side is the gmt+0 time zone, our report default Beijing time, can not be modified to GMT0,When you export data in Excel to Excel by hour, and then to a text file, the shell turns to GMT0 for statistics:Pre-

Common Linux Commands Explanation (eighth day)--bash Shell operating environment

For the new company, the company's leadership is very good. I feel more of the place is, their work efficiency is obviously higher than before. In the past will be very impatient for frequent changes in demand, now received after the demand will be

A repeating string that supports variables under the shell

Python is a very easy way to solve repetitive strings, such as a= "James", so to get "Jamesjamesjames" is "a*3".But this "*" string multiplication in the shell is not, for example, "to output 10 a", do not want to use for the loop to do, how to

Use of shell scripts---for loop

Loop of shell scripts: repeating commands1.for CycleGrammarFor variable name in variable Value listDoCommandDoneFor based on the contents of the variable Value list, executes the command repeatedly until all the contents of the Variable Value column

Shell simple Use (v) variable two

1. Read reading variables from the keyboard  2. Declare/typeset declaring variable typesA. The-i option of the DECLARE command specifies that the variable is an integer type (the default is a string)  B. The-X option of the DECLARE command specifies

Llinux Gvim Shell Array

#数组: Bash supports only one-dimensional arrays, starting with subscript 0.#定义数组: Array_name= (value0 value1 value2), as follows1 array_name=(2value03value14value2 5 )#还可以单独定义数组的各个分量, a continuous subscript may not be used, and the subscript range

Total Pages: 541 1 .... 420 421 422 423 424 .... 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.