Question

Unix / Linux 11. Globbing (filename substitution): Provide an argument to the ls command that will...

Unix / Linux

11.

Globbing (filename substitution):

Provide an argument to the ls command that will result in a globbing expression that meets the following description:

Filenames that have a length of 5 characters.

12.

Globbing (filename substitution):

Provide an argument to the ls command that will result in a globbing expression that meets the following description:

Filenames that begin with an alpha and end with a digit.

13.

Globbing (filename substitution):

Provide an argument to the ls command that will result in a globbing expression that meets the following description:

Filenames that contain a period. [At least one period]

14.

Globbing (filename substitution):

Provide an argument to the ls command that will result in a globbing expression that meets the following description:

Filenames of length two inside/under directory filenames of length 3.

15.

Globbing (filename substitution):

Provide an argument to the ls command that will result in a globbing expression that meets the following description:

Filenames that contain a non-alpha.

Homework Answers

Answer #1

1) ls argument for matching 5 character names is    ?????

usage example ls /home/jon/Desktop/?????

this will list all files that have 5 character names in user jon's desktop.

2) Filenames that begin with an alpha and end with a digit   [A-Z,a-z]*[0-9]

usage example ls /home/jon/Desktop/[A-Z,a-z]*[0-9]

3) Filenames that contain a period   ls *.*

usage example ls /home/jon/Desktop/*.*

4) Filenames of length two inside/under directory filenames of length 3 is    ???/??

usage example ls /home/jon/Desktop/???/??

If there are directory in jons desktop that have 3 chars, then files inside these directories that have 2 chars will be shown.

5) Filenames that contain a non-alpha.   *?[0-9]*

usage example ls /home/jon/Desktop/*?[0-9]*

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT