Shell---related simple program normalization

1, 1-100 number summation① non-recursive methodShell650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/83/0B/wKiom1dpIcHBcRrUAABevxRp8l8674.jpg "title=" Sum1.jpg "style=" Float:none; "alt=" wkiom1dpichbcrruaabevxrp8l8674.jpg "/>Operation

Shell script Programming

650) this.width=650; "title="%]bw ' BI7 ') 2O) 8$ @MNDGKKM. png "style=" Float:none; "src=" http://s3.51cto.com/wyfs02/M00/ 83/11/wkiol1dqljdcexdmaaaonuc13sa029.png-wh_500x0-wm_3-wmp_4-s_2178205859.png "alt=" Wkiol1dqljdcexdmaaaonuc13sa029.png-wh_50

2nd Chapter into the shell

several termsMute terminal (dumb terminal):A dumb terminal was usually nothing more thanA monitor and keyboard connected to the Unix system via a communication cable (usually a multiwireSerial cable multi-line serial cable, also called ribbon cable).

To intercept a string in a shell script

1. Remove the left character and leave the right character1). Use # InterceptExample: str= "http://www.baidu.com"650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M01/82/DC/wKioL1djQu_CLXeEAAAzIuXnc10469.png-wh_500x0-wm_3

Shell Script Application Applet

The summation of 1...100Non-recursive:   #!/bin/bash read num count=1 sum=0 val= ""  ret= ""  while  [  $count  -le  $num  ] do    if [  $count  -eq   $num  ];then        val= $count     else         val=${count} ' + '     fi   

"Shell" multi-Command execution order

; for example[Email protected] ~]# date;dd if=/dev/zero of=/home/1 bs=1k count=10240;date # #统计dd命令消耗时间, where/dev/ Zero empty file Tue June 15:15:02 CST 201610240+0 Records in10240+0 records out10485760 bytes (ten MB) copied, 0.0224696 s, 467 M

Shell 10 a good habit

Michael Stutz, author of the Linux Cookbook, has summed up 10 good habits with his many years of experience in using UNIX, and personally believes that it is really useful, and is summarized below to share with you.1. Create a hierarchy directory:

Shell Note 2 Tput

Shell ArrayCommand_list= ([add]= ' Add '[del]= ' Delete '[edit]= ' Modify '[query]= ' query ')Get index: ${!command_list[*]}, according to the index submission value, perform the corresponding operation.Get length: ${#command_list [*]}, traversing

Make your own Linux-->shell

Thank you for the 36,000 sectionCommon Shell Categories: BASH: is the GNU Bourne Again Shell, which is the default shell on the GNU operating system C Shell: The BSD version of Sun's shell Look at where the shell is on the

Linux Gvim Shell String

#字符串: As the number is the most commonly used type, the other is nothing to use.#字符串可以使用单引号, double quotes, without quotes.#单引号字符串限制:# 1. Any character is output as is, and the variable in single quotation marks is invalid# 2. Single quotes cannot

Linux Shell Execution principle

Shell IntroductionThe shell is the user interface of the system and provides an interface for users to interoperate with the kernel. It receives the command entered by the user and feeds it into the kernel to execute.Running backgroundA basic Linux

Chapter 1th Overview of Shell programming

1.shell Introduction The shell is a special-function program that provides an interface for users to interact with the kernel. It is used to receive commands entered by the user and send it to the kernel for execution. The shell is an

Shell Combat Log desensitization

The actual combat target for the log desensitization, the log directory of all the files processed, all involved in the card number and password information, will be replaced by "*" number, to replace the contents are obtained from the corresponding

Shell Learning Note 1

Knowledge point 1, modify the color of the outputEcho-e "\e[1;31m This is red text \e[0m"Where \e[1;31m indicates that the output is displayed in red, the \E[0M logo resets the color, and 31 can be replaced by a different color value, which is used

Regular expressions in the shell

1. Regular and wildcard characters The wildcard characters in Linux are used to match the file names, and their matches are exact matches. Only wildcard characters are supported, command has LS find CP and other commandsThe regular is used to match

One day a shell

Day01Write a script to do the following: Enter a number, and then run the corresponding command. The display command is as follows: *cmd meau** 1---date 2--ls 3--who 4--pwdWhen you enter 1 o'clock, you run the date, enter 2 o'clock to run LS, and so

Shell script to install JDK under Redhat

It's annoying to unload the system following the OPENJDK and then install the orcle jdk every time, soWriting a script execution is a hassle, just put the following bash script and the one you're downloadingThe jdk-7u79-linux-x64.tar.gz package can

Conditional judgment in Linux Shell corner

1. Condition Judgment:If use:if condition; Then commands; fiIf else uses:if condition; Then commands; Else if Then commands; Else commands; fiDescription&&| | action; # If condition is false, the action is executed. && is the logic and operator, |

"Original" Java program calls remote shell script

The purpose of this program is to execute shell scripts on the remote machine."Environment Parameters"Remote machine ip:192.168.234.123User name: RootPassword: rootPath to shell script:/home/ifilegentool/bakprovisionandoccurentrance.sh"Concrete

Repairing method of Redhat broken shell bug

cve

Hackers exploit this vulnerability to execute arbitrary code, even without the need for authentication, to remotely gain control of the system, including executing malicious programs, or implanting Trojan horses within the system, or obtaining

Total Pages: 541 1 .... 465 466 467 468 469 .... 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.