1. Shell ConceptThe shell is a program written in C, which is a bridge for users to use LinuxThe shell is both a command voice and a programming voiceA shell is an application that provides an interface through which users access the operating
Shell annotationsUse # as the comment symbolThere are no multiple lines of comments in the shell, only one line plus a # numberString manipulation1. Stitching strings 2. Get the string lengthString= "KHJF"echo ${#string}3. Extracting
Shell is a command interpreter in Linux and the main environment in Linux. It has many functions, it mainly describes the basic concepts of shell, shell types, special characters in shell, redirection, and shell program. The focus is on shell
Msdn 2005-> Win32 and COM development-> User Interface-> Windows User Experience-> Windows Shell-> shell programmer's Guide-> shell basics-> transferring Shell objects with drag-and-drop and the clipboard
Many applications allow users to transfer
Table 4-3 lists the commands supported by the EFI Shell Interface on the unit-based HP integrity server.
When npartition is active but the operating system has not been booted, you can access the EFI shell from the npartition console.
You can use
Often, a software IOS jailbreak package requires many channels. I used to modify the channel number once and re-package it. However, as more and more channel numbers become daunting, you can only find one automatic packaging statement. You can
1. log files are regularly cleared on the AIX machine to release the disk space occupied by log files.
Shell does not seem to have a function to process date computing. It is very convenient to process date in Java, and it is too difficult for
RMAN backup is easy to use for Oracle database backup and recovery, with low costs. For non-catalog mode, it is undoubtedly the first choice to embed the RMAN script into the shell script and then use crontab to back up small and medium databases.
Notes for shell script programs: variables can be directly used without prior declaration; the variable does not have any data type. The default value is a string; no space is allowed on any side of the equal sign of the value assignment operation.
F statement format
If conditionThenCommandElseCommandFi, don't forget the end.
If statements forget the final fiTest. sh: line 14: syntax error: unexpected end of fi
Three conditional expressions of if
1. CTRL + W Delete the last word
2. CTRL + u delete a row
3. CD-Return to the last working directory
4. Cd ~ Return to the Home Directory
5 .! $
! $ Is a special environment variable, which represents the last string of the previous command.
Example:
After Onda v811 was upgraded to 4.22d, it was successful to use the master to root the machine. Baidu root is a floating cloud. It's worse than the flash master of a small company in Shenzhen!
After root, log on to shell or shell @..., not root @...
5 whileNumber of cyclesFoo = 1 // initial cyclic valuesWhile ["$ foo"-le 2] // le: DoEcho "Are you there"Foo = $ ($ Foo + 1) // This form is very important to foo ++Done
6Until ConditionDoStatementsDoneThe until loop is executed repeatedly until the
Shell:
Shell Baidu Encyclopedia: Baidu. It receives user commands and calls corresponding applications. It is also a programming language. As a command language, it interactively interprets and executes user-entered commands or automatically
This article is the fifth chapter of Flow Control in learning the bash shell 3rd edition, but we will not limit it to this. Flow Control is a common part of any programming language and includes bash. Here we will learn about them.
If/else is used
(Function: Move the general files in the directory to The./save directory, without moving the directory itself and the file fun. Sh)
Fun. Sh
#! /Bin/bash # When no. /create the directory if [-D. /save] Then ECHO " has existed" else mkdir.
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