The test of the shell face of ER

Source: Internet
Author: User

1. Write a shell procedure named Xunhuan (with a looping statement), as shown in the results of the operation.
0
10
210
3210
43210
543210
6543210
76543210
876543210



2. Write a shell process called Cala, which functions as a small calculator that allows you to add, subtract, multiply, and divide two numbers. The two operands and operators are given by the positional parameters (the positional parameters 1 and 3 are two operands respectively, the positional parameter 2 is the operator), and the four run results are appended to the Cal file.

A: a=""; forIinch' Seq0 8`; DoA=$i $ A; Echo $A; done two: for((i=0;i<9; i++))     Doa=$i $ A echo $a done three: #!/bin/Bash N=9     for((i=0; i<= $N; i++ ))     Do       for(j= $i; j>=0; j-- ))       DoEcho-n $j done Echo done

http://bbs.chinaunix.net/forum.php?mod=viewthread&tid=1103397&highlight=

The test of the shell face of ER

Related Article

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.