which rename|xargs file

would be an easy way to tell which you have, BTW...

cheers,

   Ben


On Fri, 5 Dec 2003 11:32:23 -0800
Cory Petkovsek <[EMAIL PROTECTED]> wrote:

| On Fri, Dec 05, 2003 at 10:08:20AM -0800, Bob Miller wrote:
| > Dirk Ouellette wrote:
| > 
| > >  noartist]# ls notitle
| > > _10.mp3  _13.mp3  _16.mp3  _19.mp3  _22.mp3  _25.mp3  _28.mp3  _3.mp3 
| > > _6.mp3  _9.mp3
| > > _11.mp3  _14.mp3  _17.mp3  _20.mp3  _23.mp3  _26.mp3  _29.mp3  _4.mp3 
| > > _7.mp3  track00.mp3
| > > _12.mp3  _15.mp3  _18.mp3  _21.mp3  _24.mp3  _27.mp3  _2.mp3   _5.mp3 
| > > _8.mp3
| > > 
| > > What is the #rename command to rename all of these files with
| > > section_*.mp3, [as in section_1.mp3 for track00.mp3] and so on?
| > 
| > This would work.
| > 
| >     cd noartist/notitle
| >     rename _ section_ *.mp3
| > 
| > I don't know where the rename command came from (it's not part of
| > classical Unix), but it's in util-linux now, distributed by
| > kernel.org.
| 
| There are actually two rename commands that I've seen.  In debian,
| rename is a perl script which takes a perl substitution.  Your command
| would be:
| 
| rename 's/_/section_/g' *.mp3
| 
| In gentoo and perhaps other distributions you might have a binary rename
| which takes the format bob described above:
| 
| rename _ section_ *.mp3
| 
| Cory
| 
_______________________________________________
EuG-LUG mailing list
[EMAIL PROTECTED]
http://mailman.efn.org/cgi-bin/listinfo/eug-lug

Reply via email to