Shell traversal of all files including subdirectories

Source: Internet
Author: User

1. Code is simple, but difficult to verify, not as good as Python understanding

It is recommended to edit under notepad++.

2. Note the ' Yes ' tab key that references the Linux command.

3.if[] Here

Error:syntax error near unexpected tokens ' then '

Cause: Conditional statement [blank spaces on both sides of the symbol

2.1 Spaces

A. When defining a variable, the = number cannot be left blank on either side

B.if statement [Both sides of the symbol are left blank

C. String comparison, = blank spaces on both sides

D. If and then in the same line to be added;

Shell traversal of all files including subdirectories

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.