Linux Medium Variable $#,[email protected],$0,$1,$2,$*,$$,$? the meaningLet's start by writing a simple script that will explain the meaning of each variable after execution.The script reads as follows:[email protected] ~]# cat Test.txt#!/bin/bashecho "number:$#" echo "Scname:$0" echo "First:" echo "Second:$2" echo " A
1. Create a simple script variable:Vim variable2. Modify the contents as follows:#!/bin/SHEcho "number:$#"Echo "scname:$0"Echo "First : $"Echo "second:$2"Echo "Argume:[email protected]"Echo "Show Parm list:$*"Echo "Show Process id:$$"Echo "Show Precomm stat: $?"3. Execute the Script./variableThe meaning of some parameters in a Linux shell script: $# is the number
these types of grammar, so what we see in the questions is at least the type 0 grammar.Type 1 grammarType 1 grammar is also called context-sensitive grammar, which corresponds to a linear bounded automaton. It is based on the type 0
$# is the number of arguments passed to the script. $ is the name of the script itself. $ is the first parameter passed to the shell script, and the second argument that is passed to the shell script is [email protected] is a list
$# is the number of arguments passed to the script. $ is the name of the script itself. $ is the first parameter passed to the shell script, and the second argument that is passed to the shell script is [email protected] is a list
let's start by writing a simple script that will explain the meaning of each variable after execution .# Touch Variable# VI VariableThe script reads as follows:#!/bin/shecho "number:$#"echo "Scname:$0"echo "First: $ $"echo "Second:$2"echo "Argume:[email protected]"echo "Show Parm list:$*"echo "Show Process id:$$"echo "Show Precomm stat: $?"Save Exitassigning script Execution Permissions# chmod +x variableEx
for these things, the gods are already in the chest, but there are some just contact Linux , Unix people like these systems may not be familiar with these variables, so I'll share them with you today. What problem can add QQ Group, we discuss together -- Ops tribe:348384728To make it easier for everyone to understand, write a simple script that will explain the meaning of each variable later.# Touch Test# VI TestThe script reads as follows: #!/bin/sh
Remove any 2 numbers from the array to determine whether they are the input number sum, the time complexity is 0 (n^2), and the spatial complexity of 0 (1)Assuming the data is already sorted.#include Remove any
border:1px solid Rgba (0,0,0,0.1) means that the bounding rectangle of the set element is 1 pixels wide, the solid line, and the color is expressed using RGBA.Where Rgba is an attribute in the CSS3,The first 3 digits of the RGBA brackets represent the RGB values of red green blue Three colors, 0-255, and the last one
#include If there are 4 numbers, 5*1 5*5*5 5*5*3 5*91. Become 5*n1 5*n2 5*n3 5*n4 There are 4 numbers is a multiple of 52. Become 5*n1 5*5*n5 5*5*n6 5*n4 There are 2 numbers is a multiple of 253. Become 5*n1 5*5*5 5*5*n6 5*n4 There are 1 numbers is a multiple of 125The above is
The O f i c e 2 0 0 3 installation on your computer is corrupted and Setup cannot continue. Please remove or repair O f i c e 2 0 0 3 product and rerun
The Office 2003 installation
it's better to invoke a script with void (0)or
Several ways to open a new window link
1.window.open (' url ')
2. Use Custom function
-------------------------------------------------------------------------------
If it is a #, there will be jumps to the top of the situation, the personal collection of several solutions:
1:
Just like what is the difference between the following code {code...} and {code? Humbly ask the experts for advice, just like
The following code
Echo 'configuration error'; exit (3); // Status 3 indicates exit due to configuration error
And
// Exit directly ('configuration error ');
What is the difference?
I would lik
What is the use of * {margin: 0; padding: 0;} in the CSS of the webpage? marginpadding
* The wildcard is used to match all elements on the page.* {Margin: 0; padding: 0;} As 2L said, b
Why Output 1All the other numbers are normal, that's the 6865 contrast is not normal (this is the point)
Reply content:
Why Output 1All the other numbers are normal, that's the 6865 contrast is not normal (this is the point)
Programming should be aware of the truth, never expect to compare the floating-point n
, and defines the action between objects, which is what can be done, so this is more suitable for developing large programsBut any tool is a double-edged sword (a chopper can kill or cut a dish)To understand programming, you have to understand variablesVariable (changing amount): I
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.