String interception under Shell

Source: Internet
Author: User

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/82/E0/wKioL1djmxjx5LUrAACG8N3z-pA754.png "style=" float: none; "title=" 0.png "alt=" Wkiol1djmxjx5luraacg8n3z-pa754.png "/>

The maximum, minimum, and average values of a set of numbers are obtained.

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/82/E0/wKioL1djmxjw5nUFAAAVosLhR4Y628.png "style=" float: none; "title=" 1.png "alt=" Wkiol1djmxjw5nufaaavoslhr4y628.png "/>

TR tool, which is command, function: case substitution and text substitution

    1. Enter lowercase into a file with a for loop first

    2. The read file is then piped for conversion. Pipe action: The previous command execution result is given to the next instruction as its input.

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/82/E1/wKiom1djmgKxnJ4JAAAy9bGxpl8280.png "title=" 2.png " Style= "Float:none;" alt= "Wkiom1djmgkxnj4jaaay9bgxpl8280.png"/>

Shell script debugging: The shell script is executed sequentially, read an explanation of the article.

Therefore, when debugging, you should

1. Locate the error line.

2. Check the syntax error message, view the source code, and make corrections.

There are several ways to locate errors:

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/82/E3/wKiom1djqmPx2PQ3AAFb043fO3g962.png "style=" float: none; "title=" 3.png "alt=" Wkiom1djqmpx2pq3aafb043fo3g962.png "/>

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/82/E3/wKiom1djqmaSca8gAAEF6BdmS2E688.png "style=" float: none; "title=" 4.png "alt=" Wkiom1djqmasca8gaaef6bdms2e688.png "/>

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/82/E2/wKioL1djq3-hG8g0AAB6cNo7fcU588.png "style=" float: none; "title=" 5.png "alt=" Wkiol1djq3-hg8g0aab6cno7fcu588.png "/>

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/82/E2/wKioL1djq4DjUi6rAABuyf0WTE8481.png "style=" float: none; "title=" 6.png "alt=" Wkiol1djq4djui6raabuyf0wte8481.png "/>

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/82/E3/wKiom1djqm7Qq0iQAAEBBe_EqEs103.png "style=" float: none; "title=" 7.png "alt=" Wkiom1djqm7qq0iqaaebbe_eqes103.png "/>

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/82/E3/wKiom1djqm-x5asyAABkLUQdceg854.png "style=" float: none; "title=" 8.png "alt=" Wkiom1djqm-x5asyaabkluqdceg854.png "/>

String interception (8 ways):

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/82/E3/wKioL1djsY7R-9w2AACh_i6tZyA203.png "style=" float: none; "title=" 9.png "alt=" Wkiol1djsy7r-9w2aach_i6tzya203.png "/>

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/82/E4/wKiom1djsHjBeu_wAABs-jgNSiU921.png "style=" float: none; "title=" 10.png "alt=" Wkiom1djshjbeu_waabs-jgnsiu921.png "/>

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/82/E4/wKiom1djsHiSi1mlAABpbPSpXYQ462.png "style=" float: none; "title=" 11.png "alt=" Wkiom1djshisi1mlaabpbpspxyq462.png "/>

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/82/E3/wKioL1djsY_hq8gVAABuB-J3rX4247.png "style=" float: none; "title=" 12.png "alt=" Wkiol1djsy_hq8gvaabub-j3rx4247.png "/>

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/82/E4/wKiom1djsHnDt1IAAABo8nHeJPU816.png "style=" float: none; "title=" 13.png "alt=" Wkiom1djshndt1iaaabo8nhejpu816.png "/>

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/82/E3/wKioL1djsY_DjjX0AABgoQyVGLc137.png "style=" float: none; "title=" 14.png "alt=" Wkiol1djsy_djjx0aabgoqyvglc137.png "/>

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/82/E4/wKiom1djsHnSSmmRAABpsCOya4o115.png "style=" float: none; "title=" 15.png "alt=" Wkiom1djshnssmmraabpscoya4o115.png "/>

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/82/E3/wKioL1djsZChOrUhAABtJUAj6NM624.png "style=" float: none; "title=" 16.png "alt=" Wkiol1djszchoruhaabtjuaj6nm624.png "/>



This article is from the "Small Stop" blog, please be sure to keep this source http://10541556.blog.51cto.com/10531556/1790260

String interception under Shell

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.