bash: sorting a bunch of files into two halfs by size, and other tasks
GeneralThis forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
bash: sorting a bunch of files into two halfs by size, and other tasks
Hello again.
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.
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.
ROFL.
Anyways, I'm not an expert on scripting either, I just thought I'd mention that I have had great difficulty getting bash to do things simultaneously. There is a old thread of mine around here about it, to date I still don't know how to do it. Its fairly easy to get bash to things one after the other very quickly. But when you are encoding, I imagine it may make a difference. You may have to use a proper programming language.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.