[MPlayer-dev-eng] [PATCH] fix for textultils 2.1 coreutils 5.0 "-1" deprecation

Paul Jarc prj at po.cwru.edu
Tue Jul 8 20:36:07 CEST 2003


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



More information about the MPlayer-dev-eng mailing list