[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Rename files



On Tue, Mar 21, 2000 at 04:09:59PM +0100, Oswald Buddenhagen wrote:
> > I'm trying to rename a lot of files. I just want to substitute underlines
> > with whitespaces. How can I do that?

you could try mmv
for example, if files are:  foo_bar
just do
	mmv "foo*bar" foo\ bar	(the quotes are required)


> > 
> possibly not the easiest way, but it works:
> 
>     for i in *; do mv "$i" "${i//_/ }"; done
> 
> works only with bash 2.x (probably you have one ...).
> 
> you also could try mmv, but i don't know, if it is capable of this kind of
> operations.
> 
> 
> 
> -- 
> Unsubscribe?  mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null
> 
> 


Reply to: