jbeadling / module-1

Command line module
0 stars 0 forks source link

Utilize wildcards in commands #11

Open jbeadling opened 11 months ago

jbeadling commented 11 months ago

Ticket: Utilize Wildcards in Commands


Summary

Learn how to utilize wildcards (*, ?, [...]) in command-line commands for more flexible and efficient operations in a Unix-like operating system.


Description


Learning Tasks

  1. Introduction to Wildcards:

    • Learn about the basic types of wildcards and their functionality (*, ?, [...]).
  2. Using Wildcards in Commands:

    • Understand how to use wildcards with common commands like ls, cp, mv, and rm.
  3. Best Practices:

    • Discover scenarios where using wildcards can save time and effort.
  4. Pitfalls to Avoid:

    • Learn the risks of using wildcards carelessly and how to mitigate them.
  5. Hands-on Practice:

    • Exercise 1: Use the * wildcard to list all .txt files in a directory.
    • Exercise 2: Utilize ? to match single characters in file names.
    • Exercise 3: Employ [...] to list files that match specific character ranges.
    • Exercise 4: Combine wildcards to perform complex file operations.
  6. Troubleshooting:

    • Understand common issues one might encounter when using wildcards and how to resolve them.

Learning Goals


Priority

jbeadling commented 11 months ago

Below I take advantage wildcards to do the following:

Image

Image