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

Re: make "for x in *$1*" case insensitive?



On Thu, 04 Mar 2004 14:20:27 +0000, Peter Stephenson <pws@xxxxxxx>
wrote:

>zzapper wrote:
>> Hi Y'All
>> 
>> for x in *$1*
>> 
>> How can I make above case insensitive I guess I could transform
>
>Make what case insensitive?  There's no test.

If I call the following script with 

>vvv me

It will not list a file say READ.ME but will list READ.me

function vvv () { 
for x in *$1*
do
      echo $x
done
}

zzapper (vim & cygwin & 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