El Jueves, 13 de Septiembre de 2007 21:04, Dan Nicholson escribió:

> Manuel, this one is actually not that hard to fix, so long as we
> believe the last field is always the version number. Instead of
> hardcoding the field number with cut, just use the last field with
> awk.
>
> $ grep --version | head -n1 | awk '{print $NF}'
> 2.5.1

Changed, thanks.

-- 
Manuel Canales Esparcia
Usuario de LFS nº2886:       http://www.linuxfromscratch.org
LFS en castellano: http://www.escomposlinux.org/lfs-es http://www.lfs-es.info
TLDP-ES:                           http://es.tldp.org
-- 
http://linuxfromscratch.org/mailman/listinfo/alfs-discuss
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to