MCU and embedded system exam shell Programming question Bank, simply made the next.9. Similar to the title 7, there is a multiplication operation.#!/bin/bash# test1.SH# 2016.1.2 Echo "Please input N student grade:"Read-A grade for((i=0; i)) Do
first, to write a shell programExample 1:"program"1 #!/bin/sh2echo"Hello Word! "Run"description"The first line: #i/bin/sh means using an interpreter in the Ubuntu system to interpret the shell and run it/bin/sh. second line: echo "Hello Word!"
We often need to generate ActiveXObject ("Wscript.Shell") to tune an EXE file,Such asSet page header footer to print is emptyvar Hkey_root,hkey_path,hkey_key;Hkey_root= "HKEY_CURRENT_USER";Hkey_path= "//software//microsoft//internet
#命令输入特殊符号* is match 0 or more characters? is to match one character#是加上这行不生效\ is a de-righteous character$ is the prefix of the variable, using the variable; is used in the middle of two commands.[] is matching two filesls [12].txt = = ls 1.txt
A wildcard is handled by the shell, and it appears only in the parameters of the command (it is not used in the command name or on the operator). When the shell encounters a wildcard in parameters, the shell treats it as a path or file name to
Tried for a long time, and finally successfully output the Hello WorldExperimental environment$uname -a 4.2. 5-1-arch #1: x86_64 gnu/ Linux$GCC--versionGCC (GCC) 5.2.0Copyright (C) Free Software Foundation, Inc.This was free
After the CentOS restart, a lot of services need to start manually, it is troublesome, today will need to boot or shut down the service to organize a bit, put into the Linux shell, and then add the shell into the/etc/rc.local, you can realize the
Use of shortcut keys
(1) Search operation shortcut key for Search history command: Ctrl+r. Of course, not the command you want, you can continue Ctrl + R to search for related commands, press ENTER.If you want to increase the number of command
One, the source commandFunction: Read and execute commands in the configuration file in the current bash environment1. Command formatSource configuration file or. Configuration file2. Command examples[Email protected] ~]#
Create SH Script[Email protected] ~]$ VI logicbackup.shAdd script Content#!/bin/sh# ###################################################################Powered by Ironfo# ###################################################################Oracle
LVS can use IPVSAM-LN to view the situation of the RS node, when the RS after the shutdown, when the RS automatically added after the restoration, Nginx can not view, need to install plug-ins or write their own script implementation;The reverse
OutlineFirst, the programming language classificationSecond, Shell classificationIii. Variables Related conceptsIv. Types of Bash variablesFive, logical operationSix, arithmetic operationsSeven, bash condition test type and test methodViii. the
The regular expression is a string. There is a certain pattern. We use the specified string to match a specified line. The specified string is the regular expression.Regular expressions have these tools: grep egrep sed awkCommand: GerepDescription:
1, Branch statement (1) IF-THEN-FI statement: Format: if Then commands fi When the command command exit status code is $?=0, enter the branch, or continue with the following command.(2) IF-THEN-ELSE-FI statement: Format: if
Known old boy It education a week of the financial admissions expense report is as follows: Student students to raise the fees paid for the course Consultant 1 Ge Yi 1500 Span class= "Apple-tab-span" style=
Special Symbols: *Description: Wildcard character, multiple characters. All files with the suffix ". txt" are listed to[[email protected] 111]# ls *.txt11.txt 1.txt 22.txt 2.txt 33.txt 3.txtSpecial symbols:?Description: Wildcard characters, one
Background1. In project development, it is urgent to generate files in the following three formats according to the files under the resource path Res.Format one:#define IDR_CEF_0001 101#define IDR_CEF_0002 102...#define IDR_CEF_0122
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.