Re: mv multiple files w/wildcard

2000-10-25 Thread Johann Spies
On Sat, Oct 21, 2000 at 06:13:50PM -0700, brian moore wrote: > On Sat, Oct 21, 2000 at 01:20:02PM -0500, Lance Hoffmeyer wrote: > > > > I have a number of subdirectories where I have files with - such as > > name - title.txt and I wish to convert them to: > > name: title.txt > > Look at 'rename

Re: mv multiple files w/wildcard

2000-10-22 Thread Colin Watson
Lance Hoffmeyer <[EMAIL PROTECTED]> wrote: >I have a number of subdirectories where I have files with - such as >name - title.txt and I wish to convert them to: >name: title.txt > >In bash I tried: > >for i in *-*;do mv $i `echo $i | sed -e 's/ - /:/'`'done > >but this gives me an error about mov

Re: mv multiple files w/wildcard

2000-10-21 Thread brian moore
On Sat, Oct 21, 2000 at 01:20:02PM -0500, Lance Hoffmeyer wrote: > > I have a number of subdirectories where I have files with - such as > name - title.txt and I wish to convert them to: > name: title.txt > > In bash I tried: > > for i in *-*;do mv $i `echo $i | sed -e 's/ - /:/'`'done > > bu

Re: mv multiple files w/wildcard

2000-10-21 Thread Dave Sherohman
On Sat, Oct 21, 2000 at 01:20:02PM -0500, Lance Hoffmeyer wrote: > I have a number of subdirectories where I have files with - such as > name - title.txt and I wish to convert them to: > name: title.txt If this isn't just a one-time thing (or perhaps even if it is) you should check out the mmv pa

Re: mv multiple files w/wildcard

2000-10-21 Thread Moritz Schulte
Lance Hoffmeyer <[EMAIL PROTECTED]> writes: > I have a number of subdirectories where I have files with - such as > name - title.txt and I wish to convert them to: > name: title.txt > > In bash I tried: > > for i in *-*;do mv $i `echo $i | sed -e 's/ - /:/'`'done

mv multiple files w/wildcard

2000-10-21 Thread Lance Hoffmeyer
I have a number of subdirectories where I have files with - such as name - title.txt and I wish to convert them to: name: title.txt In bash I tried: for i in *-*;do mv $i `echo $i | sed -e 's/ - /:/'`'done but this gives me an error about moving multiple files and needing a directory I also