Hacker News new | past | comments | ask | show | jobs | submit login

For parallel execution, instead of sending things to the background, we can use GNU Parallel – https://www.gnu.org/software/parallel/



My attempt:

convert_file() { f="$1" /opt/homebrew/bin/ffmpeg -i "$f" "${f%.*}.mp4" }

export -f convert_file

parallel convert_file ::: "$@"




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: