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

Re: removing spaces from a file name



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