[Linux-Biella] script

CIARROCCHI Paolo linux@bilug.linux.it
Tue, 1 Oct 2002 09:35:47 +0200


From: Emanuele Aina [mailto:faina.mail@tiscali.it]
> CIARROCCHI Paolo scriptò:
> 
> > Ciao a tutti,
> > ho scritto uno script di una linea... ;-)
> > Administrator@OIVT444P /cygdrive/log
> > $ grep $kernel $test.log | awk '{tot+=$2}; END {print tot/NR }'
> > 572.637
> > 
> > Vorrei pero' assegnare il risultato ad una variabile, sapete come 
> > fare?
> 
> Credo che con VAR=`comando` possa funzionare.
No,
non funziona in questo caso.

$ average= ` grep $kernel $test.log | awk '{tot+=$2}; END {print tot/NR }'`
bash: 572.637: command not found

		Paolo


=================================
"STRICTLY PERSONAL AND CONFIDENTIAL

This message may contain confidential and proprietary material for the sole
use of the intended recipient. Any review or distribution by others is
strictly prohibited. If you are not the intended recipient please contact
the sender and delete all copies.
The contents of this message that do not relate to the official business of
our company shall be understood as neither given nor endorsed by it."

=================================