Code:650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/82/D0/wKioL1dh_PjBg7laAABC2bcdSLE899.png "title=" Proc. PNG "alt=" Wkiol1dh_pjbg7laaabc2bcdsle899.png "/>Operating process and results:650) this.width=650; "src="
before starting the code, let's take a look at what a shell is. Shell English is also called the shell layer. In a computer, "system" software that "provides user interface", usually refers to the command parser of the command line interface. In
before starting the code, let's take a look at what a shell is. Shell English is also called the shell layer. In a computer, "system" software that "provides user interface", usually refers to the command parser of the command line interface. In
before starting the code, let's take a look at what a shell is. Shell English is also called the shell layer. In a computer, "system" software that "provides user interface", usually refers to the command parser of the command line interface. In
EvalThe role of Eval is to perform command-line processing again, that is, to perform two command-line processing on a single command line.Syntax: eval cmdlineEval will scan the back of the CmdLine two times, if CmdLine is a normal command after the
There was a problem compiling the VPP project on the FEDORA20 system today, and in the final compilation and the RPM installation package generated using Rpmbuild is incorrect, we need to make some minor changes to the spec file that generated the
Some time ago, just came to practice, because their development machine environment has not yet been equipped with the boss of the machine, opened, Yi ~! Why not traditional linux [[email protected]]? This aroused the baby's great curiosity (why the
1. Display normal stringEcho " Boring "2. Show escape charactersEcho " \ "It is a test!\" ";3. The read command reads a line from the standard input and assigns the value of each field in the input row to the shell variable#!/bin/shecho"$name It is
The shell is known as the system administrator's choice for its stability, efficiency, and flexibility. The basic shell commands are described below, including directory switching, locating and viewing files, viewing user information, and more.1.
1: User's shell History command saved in Home/username/.bash_history#!! execute the user's previous command#! PWexecutes the last command in the command history that begins with PW2: ' * ' to match 0 or more characters'? ' Match one character#ls-D
1 loops (Command execution ... But the parameter will change)As in the following form:#!/usr/bin/env bash#encoding=utf-8a= "Value1value2value3value4value5value6" for I in $ado echo "cmd $i argv" doneNote: $a cannot be written as a "$a", otherwise it
The order in which environment variables are loaded after Linux startup is: ETC/PROFILE→/ETC/PROFILE.D/*.SH→~/.BASH_PROFILE→~/.BASHRC→[/ETC/BASHRC]To change the color of the shell font after a user logs in, add PS1 content to the ~/.BASHRC, and the
1. Wildcard characters in the shell environment* 0 to multiple arbitrary characters? An arbitrary character[] a character in parentheses[-] All characters in the sequence[^] a character, and a character that is not in parentheses2. Special symbols#
Shell-6.shell Read commandRead--Reads the information from the keyboard or file and assigns it to a variable1. Read variable nameInstance[email protected] home]# cat name.sh#!/bin/shEcho-n "Please input your name:"Read nameecho "Name is ${name}"Show
About variables1. Defining and displaying variablesThere are spaces, special characters, etc. 2. Defining and displaying variablesSingle quote action and cancellation settings 3. Command-in-order Two commands to achieve the same effect4.
Shell Special variables1. Special variable names and meaningsVariable name meaning$ A script nameLocation parameter #1$-$9 positional parameter #2-#9${10} positional Parameters #10$# number of positional parameters sh test.sh XX YY, $ #就是2 is the
Shell variables${#var} to calculate the length of the variable value:1. Definition of variablesVariable name = "Content assigned to Variable" (string)Variable name = ' assignment to the contents of a variable ' (string)Variable name = numeric value (
What if the condition is judged in bash?
Condition test Type
Integer test
Character test
File test
Expressions for conditional tests
There are three kinds[ expression ] --方括号与表达式之间一定要有一个空格[[
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.