Using FIND to globally rename files...

2008-06-20 Thread Daniel B. Thurman
How do you use FIND to globally rename files? I find that some music files that have '!' embedded in them to cause conflicts especially when attempting to use Nautilus to move them from one location into another, so I wish to rename files that have offending characters in them. I tried: 1) fin

Re: Using FIND to globally rename files...

2008-06-20 Thread John Cornelius
Daniel B. Thurman wrote: How do you use FIND to globally rename files? I find that some music files that have '!' embedded in them to cause conflicts especially when attempting to use Nautilus to move them from one location into another, so I wish to rename files that have offending character

Re: Using FIND to globally rename files...

2008-06-20 Thread Robert Nichols
Daniel B. Thurman wrote: How do you use FIND to globally rename files? I find that some music files that have '!' embedded in them to cause conflicts especially when attempting to use Nautilus to move them from one location into another, so I wish to rename files that have offending characters

Re: Using FIND to globally rename files...

2008-06-20 Thread Patrick O'Callaghan
On Fri, 2008-06-20 at 12:06 -0500, Robert Nichols wrote: > Daniel B. Thurman wrote: > > > > How do you use FIND to globally rename files? > > > > I find that some music files that have '!' embedded in them > > to cause conflicts especially when attempting to use > > Nautilus to move them from one

Re: Using FIND to globally rename files...

2008-06-20 Thread Robert Nichols
Patrick O'Callaghan wrote: On Fri, 2008-06-20 at 12:06 -0500, Robert Nichols wrote: Simplest way is to use the 'rename' command: find . -type f -name '*!*.mp3' -exec rename '!' '' {} \; Slightly better: find . -type f -name '*!*.mp3' -print0 |xargs -0 rename '!' '' This will work

Re: Using FIND to globally rename files...

2008-06-20 Thread Patrick O'Callaghan
On Fri, 2008-06-20 at 16:35 -0500, Robert Nichols wrote: > Patrick O'Callaghan wrote: > > On Fri, 2008-06-20 at 12:06 -0500, Robert Nichols wrote: > >> Simplest > >> way is to use the 'rename' command: > >> > >> find . -type f -name '*!*.mp3' -exec rename '!' '' {} \; > > > > Slightly be

Re: Using FIND to globally rename files...

2008-06-20 Thread john wendel
Daniel B. Thurman wrote: How do you use FIND to globally rename files? I find that some music files that have '!' embedded in them to cause conflicts especially when attempting to use Nautilus to move them from one location into another, so I wish to rename files that have offending characters