The shell writes a simple Hanoi

########################################################################## File Name:hanoi.sh# Author:free# Mail: [email protected]# Created time:2017 April 18 Tuesday 14:36 43 seconds##################################################################

0 Brother's Linux private cuisine--14th chapter: Bash Shell

Video linkPotatoes:Station B:Directory of this chapter:1. Bash Shell1.1 What is a shell? (We communicate with the kernel core through the shell, enabling kernel to manipulate the hardware)1.2 System shell and/etc/shells function (Cat/etc/shells, you

Shell script Programming Pass parameters

Positional parameter variablesmyscript.sh ARGU1 ARGU2Citation method:$, $, ..., ${10}, ${11}, ...When executing scripts on Linux, place the parameters behind the script (myscript.sh argu1 argu2), $n represent the parameters to be executedExercise:

Special characters of the shell

Bash is a powerful scripting language, which is the default shell in many Linux occurrences, supports variables and special characters, and looks at what special characters it has:; Command delimiter, you can write multiple commands in one line;;

Rookie--shell script to solve the problem

First, the implementation of the discovery of the ADB shell into the device and no longer continue to execute/system/plugin/....ExitAll the online search is bat file call adb shell, no sh file call adb shell does not go down, look for other

Shell script temporary file generation and use, signal capture

Instance: Generate temporary file record Apache process number, kill Apache process, Delete temp file 1#!/bin/Bash2#create_log. Sh3 4#1. Get the process number to all httpd applications5#2. Deposit the process number in a temporary

Use of the Shell Foundation--test command

Test: For file type checking and variable comparisonA. Use:1. Judging expressions 2. Judging the string3. Judging integers4. Judging documentsTest examples:(1). Test[Email protected] ~_~ day5]# cat test.sh#!/bin/bashA=$1B=$2if test $a-eq $bThenecho "

A shell script

Add Nginx reverse Proxy according to the entry parameter#!/bin/bash#set-XLog_path= "./proc/logs/shellexecute.log"log_path_back= "./proc/logs/shellexecute.log1"Nginxbasepath= "/home/netnumen/ems/ums-server/utils/nginx/nginx-1.4.7"Nginxconfpath=

The difference between double-quoted and single quotation marks in shell scripts

Transferred from: http://blog.csdn.net/iamlaosong/article/details/54728393 Recently, to compile a shell script to process the data, you need to detect the existence of the data file, the file name contains the date, so you need to generate the date

Linux Shell Types

One: The type of shell that stands in terms of user login:Login Shell: Normal usually a terminal login Su-usernamesu-l USERNAMEOpen Command Window under non-login SHELL:SU username graphics terminalTwo: Bash configuration file:Global

Shell Programming Quick Start

Shell programming: For Hadoop programmers, it is often necessary to familiarize yourself with shell programming, because the shell can easily run program code.1. Shell file format: xxx.sh#!/bin/sh---The first line of the shell file must be written

Shell Programming Basics

Take a look at the logic operations in bash before you learn the basics of Shell programmingBash features multi-command executionCommand;command1 ... Sequential execution structureSelect the execution structure:Logical operation:VS: Logical

Using shell variables in awk

In awk, it's not possible to use shell variables directly.The AWK-V option allows awk to use the shell variableTime=60Awk-v time= "$TIME" ' begin{fs= ' | '} {if ($7>time) print $} 'Note: In awk, time cannot be added to the $ symbol.Online said the

Write Ngin startup script with Shell

#!/bin/bash[-f/etc/init.d/functions] &&. /etc/init.d/functionsPid=/application/nginx/logs/nginx.pidNginx=/application/nginx/sbin/nginxRed_color= ' \e[1;31m 'Green_color= ' \e[1;32m 'Yellow_color= ' \e[1;33m 'Blue_color= ' \e[1;34m 'pink= ' \e[1;35m '

Linux custom Shell functions and function libraries

Under the Linux system, Shell scripts can help us in a variety of situations, such as displaying information, even automating specific system administration tasks, creating simple command-line tools, and so on.In this guide, we'll show Linux novices

shell-Regular Expression

One, regular expression. Represents any single character650) this.width=650; "height=" src= "http://b287.photo.store.qq.com/psb?/81c1194a-ff39-4e50-b1b1-40057b06260f/ sdbj9wszq8xdepnsuukfasw8eaay*4jnuepopfpw.oo!/b/db8baaaaaaaa&bo=eaeoaqaaaaafeeu!

2. Shell Programming Exercise II

Design a shell program, add a new group to Class1, and then add 30 users belonging to this group, the user name in the form of Stdxx, where xx from 01 to 30!#/bin/bashgroupadd class1 for i in {1..30}do   if [  $I

A preliminary introduction to the shell

Introduction to the Shell under LinuxOverview:Each person after successfully landing Liux, the system will appear different cue symbols, such as $,~, #等, and then you can start to enter the command you need, if the command is correct, the system

Java invokes shell scripts and passes parameters

In recent work, you need to use Java to invoke the shell script. Summarized as follows: @RequestMapping ("/changepermission")Public String changepermission () {String ReturnCode = "";try {Process process = Runtime.getruntime (). EXEC

Minimize other programs in Delphi and all programs to minimize (use Shell.minimizeall and find your own window both ways)

1. Minimization of All ProgramsUses comobj;  var shell:olevariant;begin Shell: = Createoleobject (' shell.application '); Shell.minimizeall;end;2. Minimizing other programsspy++ 查找要最小化的程序classnamevar Indicador :Integer;begin // Find the window

Total Pages: 541 1 .... 524 525 526 527 528 .... 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.