Re: batch renaming for filenames with space

2003-07-28 Thread Sridhar M.A.
On Tue, Jul 29, 2003 at 02:20:13AM +0100, Colin Watson wrote: > > I think what you want then is an extra level of double quotes around the > backticks, thus: > > for file in *; do > cp "$file" "`echo "$file" | sed 's/^Copy of//'`" > done > > This is untested, t

Re: batch renaming for filenames with space

2003-07-28 Thread Colin Watson
On Mon, Jul 28, 2003 at 04:37:01PM -0400, David Z Maze wrote: > Micha Feigin <[EMAIL PROTECTED]> writes: > > I am trying to do a batch rename for a bunch of files with spaces in the > > name (in order to remove the spaces actually). I tried to use bash's for > > .. in command but it splits up the l

Re: batch renaming for filenames with space

2003-07-28 Thread iain d broadfoot
* Micha Feigin ([EMAIL PROTECTED]) wrote: > I am trying to do a batch rename for a bunch of files with spaces in the > name (in order to remove the spaces actually). I tried to use bash's for > .. in command but it splits up the lines on spaces and not on line ends. > Any ideas? > > The files are

Re: batch renaming for filenames with space

2003-07-28 Thread David Z Maze
Micha Feigin <[EMAIL PROTECTED]> writes: > I am trying to do a batch rename for a bunch of files with spaces in the > name (in order to remove the spaces actually). I tried to use bash's for > .. in command but it splits up the lines on spaces and not on line ends. > Any ideas? > > The files are n

Re: batch renaming for filenames with space

2003-07-28 Thread Haim Ashkenazi
On Sunday 27 July 2003 12:45, Micha Feigin wrote: > I am trying to do a batch rename for a bunch of files with spaces in the > name (in order to remove the spaces actually). I tried to use bash's for > .. in command but it splits up the lines on spaces and not on line ends. > Any ideas? > > The fil

Re: batch renaming for filenames with space

2003-07-28 Thread Dave Carrigan
On Sun, Jul 27, 2003 at 12:45:26PM +0300, Micha Feigin wrote: > I am trying to do a batch rename for a bunch of files with spaces in the > name (in order to remove the spaces actually). I tried to use bash's for > .. in command but it splits up the lines on spaces and not on line ends. > Any ideas?

Re: batch renaming for filenames with space

2003-07-28 Thread Travis Crump
Micha Feigin wrote: I am trying to do a batch rename for a bunch of files with spaces in the name (in order to remove the spaces actually). I tried to use bash's for .. in command but it splits up the lines on spaces and not on line ends. Any ideas? The files are named "Copy of ..." and I want to d