Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Splitting the unix-y way' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Splitting the unix-y way
Authored by: locknar on Jul 30, '02 07:44:40AM

This method is probably won't produce as neat a result as commercial software, but it uses built-in commands, and is therefore free. The unix "split" command works on mp3 files. It simply splits a single large file into multiple smaller ones of equal size. Use it like so:
- First switch to zsh by typing "zsh". This is needed for the "sed" portion of the command to work. I don't know why.
- Type the following command in the directory where your mp3 file is located:

split -b 500k file.mp3 new_; ls new* | sed "s/.*/mv '&' '&.mp3'/g" | zsh

where "file.mp3" is the name of your initial, large mp3 file. The file will be split into 500kb chunks, and named "new_aa.mp3, new_ab.mp3, new_ac.mp3 ..."

Thanks to "Unix Power Tools" for the sed command format. Great book.



[ Reply to This | # ]