IMG_7064

.png

School

Macomb Community College *

*We aren’t endorsed by this school

Course

1710

Subject

Computer Science

Date

Jul 2, 2024

Type

png

Pages

1

Uploaded by AgentTeamGiraffe39

158 Chapter 8: Specifying Instructions to the Shell 0 15 MINUTES Lab Exercise 8.04: Writing Wildcard Expressions There are several hundred files on LaTrina’s web site. Periodically, she needs to modify entire groups of files. For example, she often updates the .htm files. Before updating the files, she copies the files into a backup directory. She currently does this one file at a time and would like a faster method. Wildcards will allow her to access and manipulate large numbers of files at one time. Learning Objectives In this lab, you will write wildcard expressions. By the end of this lab, you'll be able to: . Use the * (asterisk) operator to write expressions ® Use the ? (question mark) operator to write expressions e Use the [ ] (brackets) operator to write expressions Lab Materials and Setup The materials you need for this lab are: ® Pencil and paper e (Optional) Computer with Red Hat Linux 7.3 installed Getting Down to Business You will practice writing wildcard expressions in the following tables. In the first table, you will describe the command and list possible results. In the second table, you will create com- mands to solve the problem. In each case, an example is provided for guidance. You will have to apply the knowledge that you acquired in the Introduction to UNIX and Linux textbook by John Muster (McGraw-Hill/Osborne, 2002) for working with wildcards. Command Description of Wildcard Example Files 1s a* All files that begin with a apple, Andrew, a.out 1s duke*.doc 1s *.jpg
Discover more documents: Sign up today!
Unlock a world of knowledge! Explore tailored content for a richer learning experience. Here's what you'll get:
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help