[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Script request for files truncating with genisoimage



On Mon 30 Apr 2012 at 19:09:02 +0100, Sharon Kimble wrote:

> i am using genisoimage on this folder ...../home/boztu/Music/Irish Celtic
> Music Collection Version 2 .... which contains 2976 mp3s, but it is truncating
> the file names after the first word of their title. It appears to be doing this
> at the first space that it encounters, so I'm hoping someone can help me by
> suggesting a script that I can run that will remove all spaces in the file
> names, before .mp3, to enable genisoimage to run properly. The iso it creates
> is 18.9gbs in size and I then run split to make it into 4gb sized files to be
> burnt to dvds.

You should have the program 'rename' already on your system. so

    rename 'y/ /_/' *

will replace a space with a _. Test first with a small number of files
copied to a testing directory.


Reply to: