Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: removing spaces from a file name
- X-seq: zsh-users 12507
- From: Andy Spiegl <zsh.Andy@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: removing spaces from a file name
- Date: Wed, 30 Jan 2008 14:26:41 +0100
- In-reply-to: <200801301141.m0UBffD3005256@xxxxxxxxxxxxxx>
- Kreccount: 1
- Mail-followup-to: zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <Xns9A3574A71769Dzzappergmailcom@xxxxxxxxxxxx> <200801301141.m0UBffD3005256@xxxxxxxxxxxxxx>
On 2008-01-30, 11:41, Peter Stephenson wrote:
>
> autoload -U zmv
> zmv '(* *)' '${1// /_}'
A while ago I picked up this variant:
zmv -Q "(**/)(* *)(D)" "\$1\${2// /_}"
Chau,
Andy.
--
Men occasionally stumble over the truth, but most of them pick themselves
up and hurry off as if nothing had happened.
-- Winston Churchill
Messages sorted by:
Reverse Date,
Date,
Thread,
Author