Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Brace Expansion



On Fri, 23 Apr 2004 15:00:43 +0100,  wrote:

>zzapper wrote:
>> > ls -l *.{cfm,htm,html}
>>
>> >\ls -t *.{html,cfm,htm}
>> zsh: no matches found: *.htm
>
>The correct way to do this is
>  ls -l *.(cfm|htm|html)
>Then you'll only get `no matches' if none of the variants matched, which
>is presumably what you want.
>
>Brace expansion is not part of globbing; it generates `*.html *.cfm
>*.htm' before the patterns are examined.

ls *.(Thanks|Merci|Dankeshoen|Gratzi)

zzapper (vim, cygwin, wiki & zsh)
--

vim -c ":%s/^/WhfgTNabgureRIvzSUnpxre/|:%s/[R-T]/ /Ig|:normal ggVGg?"

http://www.vim.org/tips/tip.php?tip_id=305  Best of Vim Tips



Messages sorted by: Reverse Date, Date, Thread, Author