TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [TCLUG:18790] quick way to strip spaces...
On Fri, 9 Jun 2000, Mike Hicks wrote:
> > for i in `find -name *.mp3`; do mv $i `echo $i | sed s/\ /-/`; done
>
> 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've noticed that filename parsing can be difficult sometimes, so this
> might not work either..
Ya know, I CONSTANTLY do that ;) <smacks forehead>
-David