For, break, continue, exit

Source: Internet
Author: User

If followed by a command
If rpm-q gcc & ID Tom | echo "Sss"; & if the preceding command is successfully executed, run &
Otherwise, execute | the following command

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/3C/13/wKioL1PApnGTAloFAAF1GcQT9uY995.jpg "style =" float: none; "Title =" 1.png" alt = "wkiol1papngtalofaaf1gcqt9uy995.jpg"/>

For is calculated once with a space or press Enter.
For I in Tom Jerry do
For I in *. Sh
{1 .. 10} is equivalent to 1 2 3 4 5 6 7 8 9 10
For I in {1 .. 10}
SEQ-W 10 equal width 09 10
SEQ 2 2 10 get a number from 2 to 10 every other
For I in '<file 'do
For (I = 0; I <10; I ++ ))
#--------------------------------------------------------
While (I <= 10); do
While true do a = "" While [$ A]; do is equivalent to while [-N $ A] do while [1] d
O endless loop
Cat file | while read a B C; do assigns values to parameters (separated by spaces) each time a file is read.

Case "$ C" in
10 | 20 | 30)

;;

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/3C/13/wKioL1PApnnActZEAAGXKxUFohE715.jpg "style =" float: none; "Title =" 3.png" alt = "wkiol1papnnactzeaagxkxufohe715.jpg"/>

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/3C/13/wKiom1PApq6ia5NkAAGvYKRRqQs034.jpg "style =" float: none; "Title =" 4.png" alt = "wkiom1papq6ia5nkaagvykrrqqs034.jpg"/>

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/3C/13/wKioL1PApoHjJIafAAHLh83rCsk781.jpg "style =" float: none; "Title =" 5.png" alt = "wkiol1papohjjiafaahlh83rcsk781.jpg"/>


This article from the "Love armed for a lifetime" blog, please be sure to keep this source http://menglinux.blog.51cto.com/8733806/1437316

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.