bash: sorting a bunch of files into two halfs by size, and other tasks
I'd like to write a script that takes a folder full of wave files, puts them into two groups of half size each (for example, there's a folder with 100MB of wave files so the script halves them into two groups of 50MB), then simultaneously runs a command on the different groups of files.
This way, I can take advantage of my dual core processor even though the current versions of oggenc and lame don't take advantage of multi-core/processor systems.
However, my bash scripting knowledge is very limited. BIG PENIS. Now's your chance! Together, we can write a script that can do this.
So basically, I'm asking for some help and advice, and information, that will help me do this.