In-reply-to » Random thought: Would be great if you could do for i in ...; do something "$i" & done ; wait in a Shell script, but with the Shell only spawning one process per CPU.

@prologic@twtxt.net You mean this? https://www.gnu.org/software/parallel/ Yeah, that works. xargs might suffice, too. The thing is, you’ll have to structure your program in a specific way for these tools to work. Can be done, sure, but if for had this built in, it would be easier. 😊

⤋ Read More