Home > Articles > Operating Systems, Server > Linux/UNIX/Open Source

  • Print
  • + Share This
  • 💬 Discuss
This chapter is from the book

This chapter is from the book

Using Wildcards

Sometimes you need to look at or use multiple files at the same time. For instance, you might want to delete all .rar files or move all .odt files to another directory. Thankfully, there are series of wildcards you can use to acomplish this.

  • * will match any number of characters. For example, *.rar will match any file with the ending of .rar
  • * ? will match any single character. For example, ?.rar will match a.rar but not ab.rar
  • * [ characters ] will match any of the character within the brackets. For example, [ab].rar will match a.rar and b.rar but not c.rar
  • * [! characters ] will match any characters that are not listed. For example, [!ab].rar will match c.rar but not a.rar or b.rar.
  • + Share This
  • 🔖 Save To Your Account


comments powered by Disqus