20150913 Day Course Assignment (shell)

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

[Shell] Regular expressions and wildcard characters

-------------------------------------------------------------------------------------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,

HBase Shell Related

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) '

Crontab call shell script does not run

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

The first time I took the shell

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/

Example of awk, if while in shell

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

Linux Shell Programming (2): For while

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

UltraEdit Configuring shell script highlighting

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

Shell (a) variable

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

[Shell] Bash variables: Custom variables

/*-------------------------------------------------------------------------------------------@ Black eyed poet --------------------------------------------------------------------------------------------*/A variable is a unit of computer memory

Shell arithmetic operations

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=

Variable substitution in the shell

${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

Classic Shell 4.2.4 Chinese version has been released

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 shell

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,

Two methods of shell automatic Interactive processing of commands

1:use ECHO-E Example Echo-e "n\np\n1\n\n+100m\nn\np\n2\n\n+1024m\nw\n" |fdisk/dev/vdb \ n represents a carriage return [Email protected] ~]# fdisk-l/DEV/VDBdisk/dev/vdb:8589 MB, 8589934592 bytesHeads, Sectors/track, 16644 cylindersUnits = Cylinders

Shell-nginx Startup scripts

########################################################################## file name: nginx.sh#  Author: dty# mail: [email protected]# Created Time: Sun 09  aug 2015 06:02:17 pm cst################################################################## ##

Read in the shell

Assigning values using read-in variablesParameters-P Setting prompt information-T set timeout timeHow to use:[Email protected] script]# read-p "pls input:" n pls input:12 [[email protected] script]# echo $n 12Special usage[email protected] script]#

Used Linux Shell Command before

--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

Shell Special variables

$ 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

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

Total Pages: 541 1 .... 475 476 477 478 479 .... 541 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.