1. Describe the operation principle of shell program (can be attached with necessary graphic instructions);Shell Summary2, summarize all the knowledge points involved in shell programming (such as: variables, grammar, command status, etc., to take
The SED editor processes the input line by row, and then sends the results to the screen.-i option: Direct Action source file, source file will be modified. sed commands and options:
A\
Add one or more rows after the current line
The bash built-in command does not need to search the path provided in the environment variable $path, so it can be executed directly, so it is fast.Here are a few simple, essential command usages.1. HelpPurpose: Displays a list of all bash built-in
Git branch view all local branches git status View current status git commit commit git branch-a view all branches git branch-r view all branches git commit-am "Init" commit and raise Release git remote add origin [Email protected]:ndshowgit push
Suppose there are variables var=http://www.hao.com/123.htm One, # Intercept, delete the left character, retain the right character. Echo ${var#*//}where Var is the variable name, # is the operator, *// deletes all characters from the
1. Core-Responsible key functionssystem memory management, software program management, hardware Device management, file system management2.GNU tool ChainThe Linux kernel is the core of the system, controlling how memory, programs, and hardware
Local Variables :Set Varname=value: scope for the entire bash processLocal Variables :Local Varname=value: Scope is the current code snippetEnvironment Variables :Export Varname=valueor Varname=value export VARNAMEPositional variables :$ ...Special
Special usage of $0,$?,$! in shellVariable Description:$$The PID of the shell itself (ProcessID)$!PID of the Shell's last running background process$?End code of the last Run command (return value)$-Flag at a glance using the SET command$*All
Bash Shell Basic Features II(1) globbingText name wildcard: Meta characters*: matches any character of any length;?: matches any single character;Example: A*b:aab, AB, a123b;A?b:[]: matches any single character within the specified range;Example: [0-
First, prefaceIn structured programming, there are three main structures: sequential, branching, and cyclic. This shows the importance of branch judgment.And in shell programming often encountered in the case of judgment, such as: Determine whether
Functions are often used when writing programs, and general development tools have a rich library of functions. But sometimes you need to customize the function to meet our needs.In Linux, the same is true for shell scripts, which sometimes use
1. HBase provides a shell terminal to interact with the user2. The DDL operation of the HBase shell(1) Enter HBase shell command line first, that is hbase_home/bin/hbase shell ... >quitTo Create a table:>create'Users','user_id','Address','Info' //
1. Simulating the Linux login shell#/bin/bashEcho-n "Login:"Read nameEcho-n "Password:"Read passwdif [$name = "CHT"-a $passwd = "abc"];thenecho "The host and password is right!"else echo "Input is error!"Fi2. Compare two number sizes#/bin/bashecho
The while loop is used to continuously execute a series of commands and to read data from the input file; the command is usually a test condition. The format is:While Commanddostatement (s) to being executed if command is TruedoneThe command
Tools for batch files (Java+shell for implementation)There is a lot of corpus that needs to be handled, and should be able to be directly handled directly with shell scripts.But the shell script is not familiar, just a few simple commands. Therefore,
1007: [HNOI2008] Horizontal visible LineTime Limit: 1 Sec Memory Limit: 162 MBSubmit: 4567 Solved: 1686DescriptionThere are n linear l1,l2 on the Xoy Cartesian plane,... Ln, if the Y value is positive infinity down, you can see a sub-segment of Li,
Installing Redis Services and PHP Redis extensions One, redis related file downloadSecond, Redis installation iii. Phpredis expansion and installation I. Downloads of documents related to this document1, Redis:http://redis.io/download2. PHP redis
Environment variable configuration file for Shell programming,
I. Introduction1. Variable type:User-Defined variables (local variables)Environment variables: Define the operation environment for each user. The learned paths and ps1 are used. To
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