TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TCLUG:18790] quick way to strip spaces...





> From: Mike Hicks <hick0088@tc.umn.edu>
> Reply-To: tclug-list@mn-linux.org
> Date: Fri, 09 Jun 2000 15:05:38 -0500
> To: tclug-list@mn-linux.org
> Subject: Re: [TCLUG:18790] quick way to strip spaces...
> 
> 
> Actually, I think you may not be correctly encapsulating the $i's..  It
> might work better to use
> 
> for i in `find -name *.mp3'; do mv "$i" `echo $i | sed s/\ /-/`; done

I'm getting an error with this, and I'm not seeing what is wrong...::

bash:  syntax error near unexpected token `|'

any suggestions...?
> 
> I've noticed that filename parsing can be difficult sometimes, so this
> might not work either..