Thank you very much, Greg! Since ".description" is constant (an extension used by youtube) I chose to go: ydx=".description" ydxL=${#ydx} ... yut=${yl:-${ydxL}} ... where yl is the line read in in the way you suggested. lbrtchx