[Linux-Biella] selezionare solo una parte di una riga in bash

Remotes webmaster a remotes.it
Sab 24 Maggio 2008 20:42:51 CEST


Alle 20:40, sabato 24 maggio 2008, Daniele (Mastro) ha scritto:
> Remotes ha scritto:
> > io ho /proc/acpi/thermal_zone/THRM/temperature con un contenuto simile a:
> >
> > temperature:	xx C
> >
> > come faccio ad estrapolarne xx in bash?
> >
> > grazie, ciao
>
> awk '{print $2}'
>
> man awk

bella! grazie mastro

-- 
Nicoḷ "Remotes" Lucia
Debian ETCH (XFCE)
"the 449257th penguin"
--
http://it.wikipedia.org/wiki/PEBKAC


Maggiori informazioni sulla lista Linux