Previous Section  < Day Day Up >  Next Section

LAB 9: METACHARACTERS

  1. Make a directory called wildcards. cd to that directory and type at the prompt:

    
    touch ab abc a1 a2 a3 all a12 ba ba.1 ba.2 filex filey AbC ABC ABc2 abc
    
    

  2. Write and test the command that will do the following:

    1. List all files starting with a.

    2. List all files ending in at least one digit.

    3. List all files starting with an a or A.

    4. List all files ending in a period, followed by a digit.

    5. List all files containing the letter a anywhere in the filename.

    6. List three-character files where all letters are uppercase.

    7. List files ending in 10, 11, or 12.

    8. List files ending in x or y.

    9. List all files ending in a digit, an uppercase letter, or a lowercase letter.

    10. List all files not starting with a letter b or B.

    11. Remove two-character files starting with a or A.

    Previous Section  < Day Day Up >  Next Section