Thread: Wildcards
View Single Post
  #5 (permalink)  
Old 25-Aug-2008, 17:35
ken_yap ken_yap is online now
Flux Capacitor Penguin
 
Join Date: Jun 2008
Location: GMT+10
Posts: 5,230
ken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud of
Default Re: Wildcards

Strictly speaking that last one {suse,linux} isn't a wildcard but brace expansion. What is the difference? Brace expansion works even if there is no match. Say you have file1 and file3 in a directory.

echo file[1-3]

will get you file1 file3, but

echo file{1,2,3}

will get you file1 file2 file3

You can read all about brace expansion in the man page.
Reply With Quote