Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zmv, case insensivity and possible the lack of coffee
- X-seq: zsh-users 20394
- From: Eric Cook <llua@xxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: zmv, case insensivity and possible the lack of coffee
- Date: Sat, 8 Aug 2015 02:15:24 -0400
- In-reply-to: <20150808054333.GC4378@solfire>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <20150808054333.GC4378@solfire>
On 08/08/2015 01:43 AM, Meino.Cramer@xxxxxx wrote:
> Hi,
>
> To sanitize some odd filenames I wrote a script like this
>
> #! /bin/zsh
> detox '*=\ *'
> zmv '(*)OddString(*)' '$1$2'
> zmv '(*)oddstring(*)' '$1$2'
>
If you are just asking how to make oddstring case-insensitive.
zmv '(*)(#i)oddstring(*)' '$1$2' # would do it.
(#i) is a globbing flag found in zshexpn under filename generation.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author