Shell's While loop

The format of the while loop: while expression Do Commandcommand 、、、 Done1. Counter-controlled while loop:Used primarily for the number of data and strings that have been accurately known to be entered.Example:#!/bin/bashint=1 while (($Int. 5 ))

The difference between a signed-in Shell and a non-logon shell

At the user's point of view, there are two types of shells:log-in Shell:Log in normally via a clientSu-username or Su-l USERNAMENon-logon shell:Su USERNAMECommand window open under graphical terminalShell scripts that are executed automaticallyBash

Daemons implemented by Shell scripts

Transferred from: http://blog.csdn.net/cybertan/article/details/3235722Transferred from: http://blog.sina.com.cn/s/blog_4c451e0e0100giqg.htmlScenario: Use a shell to see if a PHP program running in the background exits abnormallyIf exiting, use the

"Linux Shell Script Raiders" note chapter I: Shell starting base

Linux Shell Script Raiders notesChapter One: Shell start -up basics1. Variables: In bash, the value of each variable is a string. Whenever you assign a value to a variable, there is no quotation mark, and the value is stored as a string. 2,

Shell command real-combat detailed

1, according to a specified section of the path, the data copy. = head Assembly.txt /ifs1/st_env/user/liyiyuan/liushanlin/1kite_1_2/110817_i809_fcd05cdacxx_l3_insbustbarabpei-119/e3/gap/e3.scafseq_200/ifs1/st_env/user/liyiyuan/liushanlin/1kite_1_2/11

How to use the shell of Erlang to access a remote node

Experimental environment: The company intranet 2 machines, one is my own notebook (machine name Nb11), one is the company's server (machine name ws100), are Win7 system(Found a strange problem, shell access to the command, Windows, only Werl.exe

Simple shell----A little exercise in MOS

Think of their own many pictures and code in the last time the hard drive was lost, Heart is the pain ...This simple shell code was placed in a temporary PDF document that was preserved ... Amen... Today want to write a simple database, feel is not

Frequently used shell commands (updated in succession)

It's just my personal use, not all of it.1. Get the return value in front of the pipelineEcho ${pipestatus[0]}e.g.[Email protected]:~# date1 | echo 22No command ' date1 ' found, did your Mean:command ' date ' from the package ' coreutils ' (main)

Eval in Shell

Syntax: eval cmdlineEval will scan the back of the CmdLine two times , if after the first scan, cmdline is a normal command, then execute this command;If the cmdline contains an indirect reference to a variable, the semantics of the indirect

[Notes] Linux shell considerations

1 $1,$2,$3 respectively represents the first, second, and third parameter of the input.2 If you want to add then elif endif end to write fi3 do end to correspond to the done shell there are brackets in the notation such as: for[]4 [email protected]

Shell Encryption SHC Vulnerability

Recent work has been compiled shell script to the customer use, will inevitably encounter some sensitive information do not want to let customers know, so the SHC script encryption method compiled binary file submitted to the customer use, found

VMware adjusts shell window resolution under CentOS

Install the Vmware-tools first.Open/boot/grub/grub.conf with VimFind kernel/vmlinuz-2.6.18-308.el5 ro root=/dev/volgroup00/logvol00 rhgb quiet This lineAdd vga=791 kernel/vmlinuz-2.6.18-308.el5 ro root=/dev/volgroup00/logvol00 rhgb quiet vga=791 at

The shell script reads multiple files line by row and corresponds

#!/bin/bashFor i in ' seq 448 'DoAaa= ' Sed-n "$i" P num.txt 'Bbb= ' Sed-n "$i" P text.txt '/root/cooper/sms.pl $aaa $BBBDoneNum.txt recorded 348 numbers.348 fields are recorded in the Text.txtThe effect is to take the first row in the Num.txt as

Shell Font Color

ECHO-E: Enable conversion of backslash control charactersExample:Echo-e "\033[40;37m Black Bottom white Kongring \033[0m"Echo-e "\033[41;37m Red bottom white Kongring \033[0m"Echo-e "\033[42;37m Green bottom white Kongring \033[0m"Echo-e

Linux Shell programming Variable reference

Shell A total of three reference symbols, double quotes, single quotes and anti-quotes ' (in the English state of the TAB key, 1 keys to the left of the key).Double quotation mark "": References all characters except dollar sign $, anti-quote ' and

Shell Basics-2

~ Home directory. Equivalent to the $home variable.~+ the current working directory, equivalent to the $PWD variable.The working directory before ~-, equivalent to the $OLDPWD internal variable.=~ is used for regular expressions, this operation will

Example of a simple function in a shell script

This script my_name shows how the arguments to the function are passed, and how the function returns a value of TRUE or false. Use a parameter to invoke the script, which is the name you want to use in the problem. Shell script

Shell sort (hill) algorithm--java

First, take an integer less than n D1 as the first increment, dividing all the records of the file into D1 groups. All records that are multiples of the DL are placed in the same group. The direct insert sort is performed in each group first, then

Sch encrypts shell scripts 02, schshell

Sch encrypts shell scripts 02, schshell Sch encrypts shell scripts 02 I. Introduction SHC (shell script compiler) is the shell script compiler. Scripts compiled through SHC are not readable for common users. Therefore, if you want your code to

Shell programming control structure: expr, let, for, while, until, shift, if, case, break, continue, function, select, exprcontinue

Shell programming control structure: expr, let, for, while, until, shift, if, case, break, continue, function, select, exprcontinue 1. expr calculates the integer variable value S = 'expr 2 + 3' The operator numbers and parameters must be separated

Total Pages: 541 1 .... 381 382 383 384 385 .... 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.