what in shell

Alibabacloud.com offers a wide variety of articles about what in shell, easily find your what in shell information here online.

Understanding about the error of the find command in Shell Environment

Article Source: http://zhousir1991.diandian.com/page/4 [Root @ My ~] # Find.-Name *. rpm/Nessus-4.0.1-es5.i386.rpm [Root @ My ~] # Find.-Name * .tar.gzFind: paths must precede expression: recordmydesktop-0.3.8.1.tar.gzUsage: find [-H] [-L]

Comments and assignments in Shell

1. Single line comment: # echo "Hello World"2. Multi-line comment:: Tar cvzf $ databak_dir $3 $ date '. SQL' using databak_dir%3%date'.tar.gz '> 2> & 1SCP export databak_dir%3%date'.tar.gz '[email protected] "":/DIR # transfers backup files to

Execute MySQL statements in Shell scripts

Execute MySQL statements in Shell scripts For automated O & M, such as backup and recovery, DBA often needs to encapsulate SQL statements into shell scripts. This article describes several methods for calling SQL statements in a MySQL database in a

Difference between reverse quotation marks (') and $ () in Shell

Difference between reverse quotation marks (') and $ () in Shell Echo`Echo\ $ Hostname'//Reverse quotation marksecho $(echo \$HOSTNAME) //$() Someone asked today: Echo 'echo \\\\\\ W' echo $ (echo \\\\\\\ w) Why is

Execute MySQL statements in Shell scripts

For automated O & M, such as backup and recovery, DBA often needs to encapsulate SQL statements into shell scripts. This article describes the shell script in the MySQL database in Linux. For automated O & M, such as backup and recovery, DBA often

Automatically set different local codes in Shell and X

Article title: automatically set different local codes under Shell and X. Linux is a technology channel of the IT lab in China. It includes desktop applications, Linux system management, kernel research, embedded systems, open source, and other

In shell, the Russian box _ PHP Tutorial

The Russian Square in shell. #! Binbash # TetrisGame # 10.21.2003xhchenxhchen@winbond.com.tw # color definition cRed1cGreen2cYellow3cBlue4cFuchsia5cCyan6cWhite7colorTable ($ cRed $ cGreen $ cYellow $ c #! /Bin/bash # Tetris Game #10.21.2003 xhchen

Shift usage in Shell

[[Email protected] shell] # Cat shift. Sh #! /Bin/bash Until [$ #-EQ 0]; do Echo "the first is: $1 total is $ #" Shift Done [[Email protected] shell] #./shift. Sh 1 2 3 4 5 6 The first is: 1 total is 6 The first is: 2 total is 5 The first

Control Flow Structure in shell script

I am used to the C/C ++ programming environment, and then switched to shell programming, there is always a strange feeling. The general if-then-else Function Format in shell is as follows: If condition 1 Then command 1 Elif condition 2

Common techniques for learning array in shell scripts

The subscript of the array in shell starts from 0 by default. 1. Put the string in an array to obtain its length. #! /Bin/bashStr = "a B -- n d"Array = ($ str)Length =$ {# array [@]}Echo $ length For (I = 0; I DoEcho $ {array [$ I]}Done Execution

Introduction to commonly used files in shell scripts written in Python

Some related regular expressions and some temporary files are often used in shell scripts written in Python.) There are also some related files such as the/etc/passwd file, the following is an introduction to the relevant files we will use in the

Case statement in shell

The case syntax in shell is as follows:Case word in pattern1) Statement (s) to be execute if pattern1 matchs; pattern2) Statement (s) to be execute if pattern2 matchs; pattern3) Statement (s) to be execute if pattern3 matchs; *) Default action ;;

$ Default variable in shell script

In shell scripts, the $ default variable contains some internal variables, which are a special type of variables provided by Linux. These variables are used to make judgments in programs. In a shell program, the values of such variables cannot be

Modify the color in shell in Linux

Modify the color in shell in LinuxEcho-e "\ 033 [32; 49; 1 m [DONE] \ 033 [39; 49; 0 m" output result: [DONE] ########################## the color of a text terminal can use "ANSI unconventional characters sequence. Example: echo-e "\ 033 [44; 37; 5

In shell scripts $, $ #, $?

In shell scripts $, $ #, $? $0 the execution name of this program $ n the nth parameter value of this program, n = 1 .. 9 $ * all parameters of this program, this option parameter can exceed 9. $ # Number of parameters of the program $ PID of the

Use colons in shell with equal signs, plus signs, and minus signs

Use colons in shell with equal signs, plus signs, and minus signsIn question 13, there were cases of colons and equal signs mentioned, with colons, as long as they are null (undefined, null) can be overwritten;If no colon exists, it can be

Usage of $ {} in shell

Usage of $ {} in shell 1. truncation function $ {file # */}: remove the first/and its left string: dir1/dir2/dir3/my.file.txt $ {file ##*/}: remove the last/and its left string: my.file.txt $ {file #*.}: remove the first one. and the string on the

Write all kinds of graphics in shell or Python

First, the shell.Equilateral triangle[[email protected] my_script]# sh ff.shnum:6     *     ***   *****  ******* ********************[[email protected]  my_script]# cat ff.sh#!/bin/bash############################################################## ##

Conditional control in shell scripts and the use of loops

Reprint please indicate: http://www.cnblogs.com/winifred-tang94/If conditional statement syntax:If [conditional expression]ThenCodeElseCodeFiNote : In the IF condition statement above, there should be a space between if and [, and the conditional

Anatomy of related commands in shell scripts

the difference between the ' and $ ' ():In Bash, $ () and "(anti-quote) are used for command substitution.Command substitution is similar to variable substitution, which is used to reorganize the command line, complete the command line in quotation

Total Pages: 15 1 .... 11 12 13 14 15 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.