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

Re: removing spaces from a file name



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