3 ms·
For parallel execution, instead of sending things to the background, we can use GNU Parallel – https://www.gnu.org/software/parallel/ https://www.gnu.org/softwa
by outworlder 2y ago
For parallel execution, instead of sending things to the background, we can use GNU Parallel – https://www.gnu.org/software/parallel/ https://www.gnu.org/software/parallel/
- msephton 2y agoMy attempt: convert_file() { f="$1" /opt/homebrew/bin/ffmpeg -i "$f" "${f%.*}.mp4" } export -f convert_file parallel convert_file ::: "$@"