iso9660shorten

shorten the file names in directories to fit ISO9660 specs

Usability

When you download or create stuff that gets WAY too long filenames and mkisofs then chokes on them.

Usage

iso9660shorten <path/name>   Renames the name file to a filename short enough to fit the ISO9660 spec, while keeps the extension intact. In the case of filename collision, renames the files to filename1.ext, filename2.ext, etc. by appending digit 1-9 to the filename in front of the extension. Renamed file list is appended to file renamed.txt in the current directory, to allow eventual easy restoration of the original names.

Useful to call from a for..in..do..done loop or by find/xargs.

Files

iso9660shorten - bash script