Prerequisites
Check script Syntax: Bash-V test. Sh Jack
Do not run. view onlyCode: Bash-n test. Sh
Trace execution: Bash-X test. Sh
Force variables to be declared first and then use: shopt-S-O nounset
When executing the script with SH test. Sh,
shell recognition: built-in commands, Shell functions, and external commands: (1) the built-in command is the command executed by the shell itself. some commands are built-in because of their necessity. For example, if CD is used to change
We often uninstall and install wscript. Shell, FSO, stream and other objects as needed. Next I will explain how to uninstall and install wscript. Shell, FSO, and stream objects.1. Uninstall the wscript. Shell objectRun regsvr32 wshom. ocx/u in cmd.2.
BASH Shell is the default shell in Linux. It can be supplemented by tab, and historical commands such as up/down key switching are easier to use than the default KSh shell in Aix (most Unix systems.
All Linux software that can be installed under
Recently, shell has been used. It is very simple and has no logic. I wrote it here just to help myself remember it. It's just a messy note. I hope this will help you. Please advise me more.
1 If else
If [$ #-lt 5]; then
HelpExit 1
Else
Do
To call a function in a shell file compiled by yourself, use the following method:
For example, you have compiled a test. Sh file as follows,
#============ Test. sh:
#! /Bin/shEcho_line (){Echo dateEcho "Wellcome to shell func! "}Echo_line
Original article address:
Http://dev.firnow.com/course/6_system/linux/Linuxjs/20071027/80454.html
Both exec and source are Bash Internal commands (builtins commands). Enter man exec or man source in Bash to view all internal command
From: http://blog.csdn.net/snrqtdhuqf/article/details/7242309
In shell, there are two ways to assign values to array variables:
(1) name = (value1... valuen) The subscript starts from 0.
(2) name [Index] = Value
Example:
#! /Bin/sh
1. binary output file
Cat can open text files and cannot output files in binary format. Both the OD command and hexdump can complete the binary output task as follows:
(1) OD command
Od-tx4-an-v-W1 dos_setenv.sh
-T indicates the output type.-TX
Wshshell object
Progid wscript. Shell
File Name wshom. ocx
CLSID F935DC22-1CF0-11d0-ADB9-00C04FD58A0B
IID F935DC21-1CF0-11d0-ADB9-00C04FD58A0B
The following table describes the properties related to the wshshell object.
Attribute
The parentheses in shell have their special usage, which are summarized as follows:1. brackets after the symbol $The value of $ {A} variable A can be omitted without ambiguity.$ (CMD) command is replaced and the result is the output of Shell Command
In the past, when I was writing code, I encountered a problem with the file path. for example, extract the directory or file name of the file path and determine whether the directory or file exists. every time you encounter such a problem, you
One command alias settings: alias, unalias
Command alias is a very interesting thing, especially when your usual command is very long! In addition, you can add predefined attributes to some common commands to prevent accidental file killing! For
Kill-ring is definitely a wonderful design in Emacs. Many times I hate to add the clipboard of X WindowKill-ring. However, when I enter M-yThere will always be a lot of boring things in it. I may never post those things, because they are not
11.5
Dangdang ~~~ Class ~~~ Pai_^
As mentioned above: $ cat ; after file, the results of files with original content are washed away ﹗
It is not difficult to understand this concept. This is just a matter of priority:
* In Io redirection, The stdout
Classic sorting algorithm-shell sort
Shell sort is based onInsert sortIs also divided into two parts,
Part 1: Introduction to Hill sorting
The second part is how to select keywords. Selecting keywords is the key to Hill sorting.
Introduction to the
Classic shell is a tool used to optimize Windows 7 and 8 user interfaces.
The motivation for the software development was to be dissatisfied with Windows 7's removal of the classic "start" menu. As a result, he developed his own program to replace
Rename
Rename ABC abc0 * ABC *
Replaces the first ABC in the file matching * ABC * in the current folder with abc0.
The second variable name. The second access count variable reads $0 $1 $2 and so on.
1 #! /Bin/bash2 3 typeset param_num =$ #4
Variables and strings
Bash shell does not have the so-called "Data Form" unless the built-in declare is used to specify the variable type. In Bash shell, there is only one data type: A string consisting of Characters
Use it without having to go
In Linux, although there are various graphical interface tools, shell is still a very flexible tool. Shell is not only a collection of commands, but also a very good programming language. You can use shell to automate a large number of tasks. shell
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