Luca Barbato <lu_zero at gentoo.org> wrote: > +oneline="-n 1" > +if test -z "`cut --version | egrep "textutils|coreutils"`" ; then > + oneline="-1" > +fi > + You don't need anything so complex. tail -1 => sed -n '$p' head -1 => sed -n 1p (or sed 1q) paul