[index] [text page] [<<start] [<prev] [next>] [last>>]
Page 26: Wildcards

Page 26

  
  Wildcards
  To help specifying file names easier, use wildcards.
  '*' - zero or more characters
  '?' - exactly one character
  '[abc]' - exactly one a, b, or c
  '[a-z]' - exactly one letter in the range a through z
  '{foo,bar}' - either the string 'foo' or 'bar'
  Examples
     $ mv *.jpg ~/pics/
     $ cat 200?-??-??-audit.txt > 2000-audit-logs
     $ rm -i resume-199[3-6].html
     $ display {camera,phone}-*.png

Copyright 2005, Bri Hatch of Onsight, Inc.

Presented at LFNW - LinuxFest Northwest, Bellingham, Washington, Apr 2005

Presentation created using vim and MagicPoint.