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.



The Official Ubuntu Book
The Official Ubuntu Book
ISBN: 0132435942
EAN: 2147483647
Year: 2006
Pages: 133

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net