Wildcards and special characters in shell

Source: Internet
Author: User

Shell wildcards and special characters 1. Wildcards are also very useful in the bash operating environment, that is, wildcards (wildcard )! We can use bash to process data more conveniently! Below we will list some common wildcard characters. Example: [html] (1) locate the file name starting with cron under/etc: # ll-d/etc/cron * <= add-d to only display the directory (2) Find the file name with the "exactly five letters" under/etc: # ll-d/etc /????? <= Because? There must be one, so five? Right (3) find the names of all numbers in the file name under/etc: # ll-d/etc/* [0-9] * <= remember that the left and right sides of the brackets need to * (4) Find the/etc/bottom, file names starting with non-lowercase letters: # ll-d/etc/[^ a-z] * <= note that there is no * <span style = "font-size: 18px on the left of the brackets; "> <strong> </span> 2. what are the alias special symbols in the bash environment besides the special symbol wildcard? Next we will summarize the information:

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.