Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: removing spaces from a file name
- X-seq: zsh-users 12502
- From: "Mikael Magnusson" <mikachu@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: removing spaces from a file name
- Date: Wed, 30 Jan 2008 12:41:13 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=QmTpNO6thMw8sn4MypnZ2hB+PN7IrO/4bVvFIx4JIE0=; b=GnLrU3/576NPlk+SeJDpZRuhX/2fsdtAD9WRPRPDg8VhNMiKemutVJZWeNMaaeuNaIj79MVB6gONLzCjR8SPWyY1QNjp8Hf4kqb+iJu8VPZvltI51/fiwZrf5zIeyUN4N0eQHIY3XJ8nLI9KjSZa5oshmCtLhuOd8+BXFBt3sXE=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=w7jgTdegOlEDXQPyxT4/imi+sUDI/WuF+PimsvCCyJ3aYhcDr4ucobUmTYQKygy3jkGA+ByPIuIAMybr251h35a5BKgjbE5regEbo1JZ4ztDJ8U2G6LHoOr0rvvNoBQonMcOFtYDaukJbRNfsJh3oFu5BJ0JCEKaRPLGBWa3HW8=
- In-reply-to: <Xns9A3574A71769Dzzappergmailcom@xxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <Xns9A3574A71769Dzzappergmailcom@xxxxxxxxxxxx>
On 30/01/2008, zzapper <david@xxxxxxxxxx> wrote:
> Hi
> I still dislike spaces in file names:-
>
> mv Licence\ to\ Print\ Money.pdf !#^:gs/ //
>
> Is there a better/other way?
You could define a function in your .zshrc (or make a script in your
~/bin or something) that does it for you
function renamespaces() { for a ($@) {mv $a ${a// } } }
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author