It is necessary to specify the value of the command line option in the script. Getopts provides a way to place a colon after the option_string option, for example:
Getopts abcsd: Option
ABCs can be passed without adding actual parameter values,
RecommendedArticle:
APIS for file path operations in Shell
Http://www.cnblogs.com/fangkm/archive/2009/04/15/1436674.html
I wanted to sort it out by myself, but I found the above article by Google according to the title of the phenomenon, and I
2.6.6 Command Execution
1 $ (command): capture the execution result of a command and use it in the shell script programEcho the date is $ (date) // The result is the output of the command, which is a string output.Set $ (date)Echo the month is $2 //
When you use shell functions, it is easy to run another executable program in the VB program. In this article, I will show you how to improve Shell functions in a simple way.
Shell accepts two independent variables. The first is the name of the EXE
Sed (a stream editor)
Four spaces: input stream, pattern buffer, output stream, and hold BufferThe basic operation process is:(1) Put the current row of the input stream into the pattern buffer, and then the pointer of the input stream points to
The memory of the android program is divided into two parts: Native and Dalvik. Dalvik is the Java heap we usually call. The objects we create are allocated here, bitmap is directly allocated on native. The memory limit is that native + Dalvik
Install and use a peanut shell (Linux). I did this:
First you have to have a peanut shell account, must apply to the http://www.oray.com. Follow these steps.
1. Open the Web http://www.oray.com/peanuthull/download_linux.php In the XP BrowserButton
In shell scripts, you often need to obtain the system time to process an operation. Today, the system learns how to obtain the system time. The record is as follows:
Linux system time can directly call system variables in shell, for example:Get the
The basis of each condition statement is to determine what is true or false. Whether or not you understand the working principle of the script will determine whether you are writing a quality script or a script that you will be proud.The ability of
The shell script was called for half an afternoon .. Shell is really a Nb tool .. Thanks for a space. If you do not enter one space, the space can be adjusted to death ..
1. There are some very strange errors. The error location during execution is
Shell commands: Common commands and built-in commands.
External commands: commands that can be executed at the command prompt.
Built-in commands: Implemented in shell, cannot be called as an external program.
The internal or external commands are
Function:
Download all files in the FTP directory of the server,
Delete all files in the FTP directory of the server immediately after the download.
*********************
---------------------Environment:
Both machines are centos4.5 _ x86***********
What is shell?
Quote:Shell is a program with special functions. It is an interface between the user and the core program (kernel) of the Unix/Linux operating system. Why do we say shell is an intermediary between the core program of the system and
Create an unzipped installation package in Shell
Principles
In Linux, you can use several basic commands to create a self-extracting program. The principle is: The Cat command can be used to connect two files (with> append can achieve the same
Overview
Wildcard is processed by shell. It only appears in the argument of the command-neither in command_name nor in options. When a wildcard is encountered in argument, shell will regard it as a path or file name to search for possible matching
Call another script in shell script
Bash shell commands are divided into two types: External commands and Internal commands. External commands are implemented through system calls or independent programs, such as SED and awk. Internal commands are
Use a Pseudo Terminal to interact with Shell in Linux
-- Lihn1987
Gdb is always used for program debugging in the company recently. As the debugging level increases, the omnipotent printf becomes increasingly useless. If you can't do it, you will
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