Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: more fun with parameter expansion
- X-seq: zsh-users 3174
- From: Clint Adams <schizo@xxxxxxxxxx>
- To: zsh-users@xxxxxxxxxxxxxx
- Subject: Re: more fun with parameter expansion
- Date: Fri, 16 Jun 2000 15:54:39 -0400
- In-reply-to: <20000616145330.A8031@xxxxxxxxxxx>; from schizo@xxxxxxxxxx on Fri, Jun 16, 2000 at 02:53:30PM -0400
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <20000616145330.A8031@xxxxxxxxxxx>
> for i (*(/N)) {mv -v "$i" "${(L)i:gs/ /_/}"}
> for i (*/**/*(/N)) {mv -v "${${(L)i%/*/}:gs/ /_/}/${${${i#*/}%/}##*/}" "${(L)i:gfor i (**/*(N^/)) {mv -v "${i}" "${(L)i:gs/ /_/}"}
>
Hmm... I'll space them this time.
for i (*(/N)) {mv -v "$i" "${(L)i:gs/ /_/}"}
for i (*/**/*(/N)) {mv -v "${${(L)i%/*/}:gs/ /_/}/${${${i#*/}%/}##*/}" "${(L)i:gs/ /_/}"}
for i (**/*(N^/)) {mv -v "${i}" "${(L)i:gs/ /_/}"}
Messages sorted by:
Reverse Date,
Date,
Thread,
Author