Vim question

Byron Clark byron at theclarkfamily.name
Tue Jan 13 21:14:41 MST 2009


On Tue, Jan 13, 2009 at 08:41:19PM -0700, Alec Shaw wrote:
> Actually as I think about it maybe a bash or ksh (after years of use ksh  
> is still my preferred shell) script
> would be better.  Maybe a "for f in *; do mv $f $g; done" but how do I  
> get $g from $f with spaces substituted?

bash:
for f in *; do mv $f ${f// /_}; done

-- 
Byron Clark



More information about the PLUG mailing list