On 2010-07-14, at 2:28 PM, olx69 wrote: > while read -r mark type; do # FixMe: better way to get the last? > last_frame=$mark > done <<< "$cut_list" last_frame=${cut_list##*[ ]} In English: it's taking the value of cut_list and removing the longest string of characters which ends with a space. - George