Re: [CentOS] Fixing filenames with directories with spaces in the names

2010-12-31 Thread Bob Marcan
On Mon, 27 Dec 2010 22:03:49 -0700 Craig White wrote: > Should be simple and perhaps I'm tired but it's not coming to me. > > In its simplest form... > > for old in `cat "$FILENAME"`;do > echo "$old" > dirname "$old" > new="$(echo $old | sed 's/\*/\-/')" > done > > I'm trying to take out

Re: [CentOS] Fixing filenames with directories with spaces in the names

2010-12-28 Thread David G . Miller
Craig White writes: > > Should be simple and perhaps I'm tired but it's not coming to me. > > In its simplest form... > > for old in `cat "$FILENAME"`;do > echo "$old" > dirname "$old" > new="$(echo $old | sed 's/\*/\-/')" > done > > I'm trying to take out some stupid Macintosh things -

Re: [CentOS] Fixing filenames with directories with spaces in the names

2010-12-28 Thread Jay Leafey
Craig White wrote: Should be simple and perhaps I'm tired but it's not coming to me. In its simplest form... for old in `cat "$FILENAME"`;do echo "$old" dirname "$old" new="$(echo $old | sed 's/\*/\-/')" done I'm trying to take out some stupid Macintosh things - in this case filenames wi

Re: [CentOS] Fixing filenames with directories with spaces in the names

2010-12-28 Thread John Doe
From: Craig White > for old in `cat "$FILENAME"`;do > echo "$old" > dirname "$old" > new="$(echo $old | sed 's/\*/\-/')" > done > I'm trying to take out some stupid Macintosh things - in this case > filenames with asterisks but I have others like tilde's and probably > others that I hav

Re: [CentOS] Fixing filenames with directories with spaces in the names

2010-12-28 Thread Eduardo Grosclaude
On Tue, Dec 28, 2010 at 2:03 AM, Craig White wrote: > Should be simple and perhaps I'm tired but it's not coming to me. > > In its simplest form... > > for old in `cat "$FILENAME"`;do >  echo "$old" >  dirname "$old" >  new="$(echo $old | sed 's/\*/\-/')" > done Should be new=$(echo "$old" | sed