#!/usr/bin/env bash log_file="$1" if [[ -z "$log_file" ]]; then printf 'give a log file from encode_all\n' >&2 exit 1 fi if [[ ! -r "$log_file" ]]; then printf '%s isnt a readable log file.\n' "$log_file" >&2 exit 1 fi time while read line; do file="/$(cut -d/ -f2- <<< "$line")" printf '%s\n' "$file" done < "$log_file" | parallel -P 0 --bar ./flac_update_id3 {}