1. Describe the operation principle of shell program (can be attached with necessary graphic instructions);2, summarize all the knowledge points involved in shell programming (such as: variables, grammar, command status, etc., to take the picture of
-------------------------------------------------------------------------------------Regular expressions and wildcard characters:1. The regular expression is used to match the qualifying string in the file , and the Regex contains the match . grep,
1. Enter the HBase command line. /HBase Shell2. Basic commandsDisplay a list of tables in HBaseListQuerying all the information in the user table Scan' Users 'Clears the data Truncate in the user table ( equivalent to disable + drop + Create) '
A shell script was recently invoked with Crontab, and a Python script was invoked inside the shell scriptIn fact, it is to abandon Python to write a judgment trouble, using the shell to write a if to judge the case to run this Python script.But
Here's how to take the shell with a little white. The first time I saw the word shell, and it was a task, to say Alexander.Background:http://www.tsqz888.com/xyfc/admin/Already have an account passwordFirst, backstage LoginSecond URL after add: admin/
1. If while command is written in one lineWhile read a b;do echo $a $b;d one 12 13 14Cat Aa.txt12 13 14if [[$i-eq 0 | | $i-eq 2]]; then env=10.79.40.146:80; else env=10.79.40.147:80; Fi2. Awk merges two filesAccount CdrCat AccountZhang San
for((i =0; I 5; i++)) Do Echo "Current number is $i" DoneSERVICES="8000-3306" forXinch$SERVICES Do Echo$x Done forXincha b c Do Echo$x Done forIinch$* #$* is a string:"parameter 1 parameter 2 ..."form to save all parameters Do
1. Download the Wordfile extension package from the UE official website: http://www.ultraedit.com/files/wf/wf.zip2. Open the UltraEdit and click on the menu "advanced"-"Configure" To open the Configuration dialog box. Click "Editor
First shell #!/Bin/bash echo "Hello world!" The "#!" fixed tag is used to specify which interpreter the script uses to parse the script and must have Execute permissions chmod+X./test.sh increased execution permissions./Test.sh executes the script
/*-------------------------------------------------------------------------------------------@ Black eyed poet --------------------------------------------------------------------------------------------*/A variable is a unit of computer memory
Reprinted from: Linux Shell arithmetic operationsThere are four ways in which the Bash Shell's arithmetic operations are:1: Using expr external programAddition R= ' Expr 4 + 5 'Echo $rAttention! ' 4 ' + ' 5 ' There should be a gap between the threeR=
${STR-NEWSTR} is only replaced when STR is NULL${STR:-NEWSTR} replace when STR is null or if STR is an empty stringAll in all,-number, when STR has no content, then replace,: The number just increases the case of an empty string. Note that the
The new version supports the Windows 10 operating system. Please click on the link in the top left corner of this blog page to download.Blogger's computer recently upgraded to the Windows 10 operating system, the use of a few days will not open the "
The Helloword of the shellCd/binLs-l | Find-name SHLs-l | FIND-NAMD BashLs-l | Grep-r sh sh is actually pointing to dashlrwxrwxrwx 1 root root 4 2014-12-11 03:13 sh, dashLs-l | Grep-r BashCD ~mkdir ShellVI hello.sh#!/bin/bash//fixed notation,
--run. SH Job commandSh. sh--let Job run behind stageNohup ./.sh&--met error as below when rub. SH jobError ' XX.sh:line XX:sqlplus:command not found 'Method:source. Bash_profile--delete file,-f (delete directly without remaind)rm-f filename--delete
$ represents the ID of the current shell process, which is the PID $echo $$Run results2934List of special variables
variables
meaning
$0
filename of the current script
arguments passed to
Basic knowledge before learning shell scripts
Chapter 2 LearningShellBasic knowledge before script
In daily linux system management, shell scripts are indispensable. If you do not write shell scripts, you are not a qualified administrator. At
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